diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:43:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:43:33 +0000 |
| commit | 6ba476b3bdcd709574750f56fe7c002b9a55bfba (patch) | |
| tree | ce30186e303cc304454bcefb05c6acdb212a20d0 /input.c | |
| parent | wayland: fix window size adjustment for CSDs placed outside main surface (diff) | |
wayland: configure: work around GNOME/mutter weirdness
When resizing the window under mutter, mutter seems to expect a
configure ack *and* a surface commit *right* away, or things get out
of sync.
Unlike kwin, which is requires a commit for each configure ack, but is
fine with having the commit arrive later (after we've rendered it),
mutter is not.
I even tried delaying the configure ack until just before the commit,
but still no go.
So for now, detect when we're running under mutter and always do a
surface commit right away.
This can *not* be done on any other compositor as it breaks the CSD
and main surface synchronization; we've resized the CSDs, but not the
main surface.
I.e. this *should* not work, but for some reason is the *only* way to
make things work on mutter.
Interestingly, doing it any other way on mutter causes visual
glitches; window jumping around when resizing, or de-synchronized
CSDs/main surface.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions
