Wayland: Remove the mutter specific ignoring of the first empty surface configure event. It seems to be no longer necessary on current mutter, with the recent Wayland changes

This commit is contained in:
Kovid Goyal
2022-09-11 14:37:50 +05:30
parent dcf2152a7a
commit fe2f3d9870

5
glfw/wl_window.c vendored
View File

@@ -577,11 +577,6 @@ static void xdgSurfaceHandleConfigure(void* data,
if (!window->wl.surface_configured_once) { if (!window->wl.surface_configured_once) {
window->wl.surface_configured_once = true; window->wl.surface_configured_once = true;
swap_buffers(window); swap_buffers(window);
if (!width && !height && !new_states && !window->wl.decorations.serverSide && getenv("XAUTHORITY") && strstr(getenv("XAUTHORITY"), "mutter")) {
// https://github.com/kovidgoyal/kitty/issues/4802
debug("Ignoring first empty surface configure event on mutter.\n");
return;
}
} }
if (new_states != window->wl.current.toplevel_states || if (new_states != window->wl.current.toplevel_states ||