From fa660fb61e9c883901c43afaf3056af9a8b4736e Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Tue, 12 Dec 2023 22:17:57 -0600 Subject: check toplevel resources it's just a aesthetic change --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 73e0c54..4436285 100644 --- a/dwl.c +++ b/dwl.c @@ -1577,7 +1577,7 @@ maximizenotify(struct wl_listener *listener, void *data) * protocol version * wlr_xdg_surface_schedule_configure() is used to send an empty reply. */ Client *c = wl_container_of(listener, c, maximize); - if (wl_resource_get_version(c->surface.xdg->resource) + if (wl_resource_get_version(c->surface.xdg->toplevel->resource) < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION) wlr_xdg_surface_schedule_configure(c->surface.xdg); } -- cgit v1.2.3