From a9de91087a7ccede8ae7d0bc5b87ce90f49330c6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Mar 2022 20:47:45 +0530 Subject: [PATCH] Add a comment explaining why we dont commit if resized --- glfw/wl_window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 782d3692a..0cc31ac4f 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -526,6 +526,8 @@ static void xdgSurfaceHandleConfigure(void* data, 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); window->wl.pending_state = 0; }