diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-01-05 11:12:34 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-01-05 11:12:34 -0600 |
commit | 668022bc906fc7ba4d2092d260fbd10304fec29f (patch) | |
tree | 204261b08f62073b8faa46aeb46fdf0de6b00651 | |
parent | c222468887b25fa21c34c02ae605d002de218d1c (diff) |
don't send configure events to uninitialized xdg-toplevels
-rw-r--r-- | dwl.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1578,8 +1578,9 @@ 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->toplevel->resource) - < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION) + if (c->surface.xdg->initialized + && wl_resource_get_version(c->surface.xdg->toplevel->resource) + < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION) wlr_xdg_surface_schedule_configure(c->surface.xdg); } |