aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:43:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:43:33 +0000
commit6ba476b3bdcd709574750f56fe7c002b9a55bfba (patch)
treece30186e303cc304454bcefb05c6acdb212a20d0 /render.c
parentwayland: 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 'render.c')
0 files changed, 0 insertions, 0 deletions