Add a comment explaining why we dont commit if resized
This commit is contained in:
parent
76a536ece0
commit
a9de91087a
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user