mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 11:16:30 +00:00
don't send configure events to uninitialized xdg-toplevels
This commit is contained in:
parent
c222468887
commit
668022bc90
1 changed files with 3 additions and 2 deletions
5
dwl.c
5
dwl.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue