ignore maximize events for clients using xdg-shell v5 and newer
This commit is contained in:
parent
e5e74acfce
commit
e45ded7eea
1 changed files with 6 additions and 1 deletions
5
dwl.c
5
dwl.c
|
@ -1587,8 +1587,13 @@ maximizenotify(struct wl_listener *listener, void *data)
|
||||||
* typically because the user clicked on the maximize button on
|
* typically because the user clicked on the maximize button on
|
||||||
* client-side decorations. dwl doesn't support maximization, but
|
* client-side decorations. dwl doesn't support maximization, but
|
||||||
* to conform to xdg-shell protocol we still must send a configure.
|
* to conform to xdg-shell protocol we still must send a configure.
|
||||||
|
* Since xdg-shell protocol v5 we should ignore request of unsupported
|
||||||
|
* capabilities, just schedule a empty configure when the client uses <5
|
||||||
|
* protocol version
|
||||||
* wlr_xdg_surface_schedule_configure() is used to send an empty reply. */
|
* wlr_xdg_surface_schedule_configure() is used to send an empty reply. */
|
||||||
Client *c = wl_container_of(listener, c, maximize);
|
Client *c = wl_container_of(listener, c, maximize);
|
||||||
|
if (wl_resource_get_version(c->surface.xdg->resource)
|
||||||
|
< XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||||
wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue