Add a comment explaining why we dont commit if resized

This commit is contained in:
Kovid Goyal 2022-03-10 20:47:45 +05:30
parent 76a536ece0
commit a9de91087a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/wl_window.c vendored
View File

@ -526,6 +526,8 @@ static void xdgSurfaceHandleConfigure(void* data,
inform_compositor_of_window_geometry(window, "configure"); inform_compositor_of_window_geometry(window, "configure");
// if a resize happened there will be a commit at the next render frame so
// dont commit here, GNOME doesnt like it and its not really needed anyway
if (!resized) wl_surface_commit(window->wl.surface); if (!resized) wl_surface_commit(window->wl.surface);
window->wl.pending_state = 0; window->wl.pending_state = 0;
} }