Kovid Goyal 2435a8ccfd
Wayland GNOME: Fix incorrect window size when in some circumstances when switching between windows with window decorations disabled
Only call wl_surface_commit() after a resize when the correct size buffer is
attached to the surface. This is ensured by setting a flag on the window that prevents
all surface commits till it is cleared. The flag is cleared at next
eglSwapBuffers().

I dont actually understand if this guarantees that the
buffer size is always correct. For example, if the back buffer is
latched when wl_egl_resize_window() is called, the backbuffer will be
correct only after two swaps (I think). Or maybe the old back buffer is
discarded, I cant find any documentation about it.

All I can say is that doing it this way seems to fix the issue.

Thanks to @jadahl for his help with tracking down the root cause.

Fixes #4802
2022-10-31 21:59:01 +05:30
..
2021-08-03 09:11:17 +05:30
2021-03-25 16:05:14 +05:30
2021-12-15 13:14:02 +05:30
2022-02-26 14:42:21 +05:30
2022-10-31 21:03:39 +05:30
2022-10-31 21:03:39 +05:30
2022-09-24 15:44:54 +05:30
2021-10-25 17:15:46 +05:30
2020-06-09 20:18:07 +05:30
2021-09-26 11:17:54 +05:30
2022-09-09 11:14:12 +05:30
2022-09-08 12:45:34 +05:30
2020-07-23 23:56:32 +02:00
2019-12-08 22:37:47 +05:30
2019-08-30 15:32:20 +02:00
2022-09-05 21:43:56 +05:30
2020-06-23 16:35:13 +02:00
...
2021-01-17 07:24:12 +05:30