]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: fix issue with panel getting stuck offscreen
authorJohn Lindgren <john@jlindgren.net>
Tue, 28 Nov 2023 05:38:18 +0000 (00:38 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 21 Dec 2023 06:01:46 +0000 (06:01 +0000)
commita3f880716fa183d9e76d01f36c864d6fe51feece
treec3e0d945929ec422b25f5ef1b03af7c2be23ebb2
parent3101b0c5b1bd15e52ee6893faaa0926454f03de9
xwayland: fix issue with panel getting stuck offscreen

For unknown reasons, XWayland surfaces that are completely offscreen
seem not to generate commit events. In rare cases, this can prevent an
offscreen window from moving onscreen (since we wait for a commit event
that never occurs). As a workaround, move offscreen surfaces
immediately.

This fixes an issue that I can reproduce by having qmpanel displayed on
a (larger) external monitor, then undocking the laptop so that qmpanel
requests a simultaneous move+resize to the (smaller) laptop display.
src/xwayland.c