]> git.mdlowis.com Git - proto/labwc.git/commit
xdg: support xdg-shell v3 with popup repositioning
authorJohn Lindgren <john@jlindgren.net>
Thu, 27 Jun 2024 23:17:38 +0000 (19:17 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 1 Jul 2024 19:16:31 +0000 (20:16 +0100)
commita98f2635ea60e416891cbc381a1a3c0d6a3478de
tree4fa1009f0522a1de0f106f637b220bbe07c444f4
parent45b197b8a4e6da4e54c8db77be6ae64e8895f451
xdg: support xdg-shell v3 with popup repositioning

See https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3514
which added support on the wlroots side.

We now re-run popup positioning (for both xdg-shell and layer-shell
popups) when the "reposition" event is received. This allows popups that
change size (such as qmpanel's applications menu) to be positioned
correctly.

xdg-shell v3 also gives the compositor some additional "hints" for popup
positioning (reactive, parent_size, and parent_configure_serial) which
are available but we don't make use of currently.
include/layers.h
src/layers.c
src/xdg-popup.c
src/xdg.c