From 6d0f8e52cb3dee31fa1e4a4b595f02b77f9abac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 12 May 2020 18:35:28 +0200 Subject: [PATCH] wayland: force-trigger a resize on 'configured' event This ensures we _always_ commit a **new** buffer in response to a configured event. This fixes an issue in Gnome where e.g. tiling the window (on the left/right side) only worked if that caused the windows size to change. --- wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wayland.c b/wayland.c index 23ccbb8e..5f99a309 100644 --- a/wayland.c +++ b/wayland.c @@ -464,13 +464,14 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface, win->is_fullscreen = win->configure.is_fullscreen; xdg_surface_ack_configure(xdg_surface, serial); - bool resized = render_resize(term, win->configure.width, win->configure.height); + bool resized = render_resize_force(term, win->configure.width, win->configure.height); if (win->configure.is_activated) term_visual_focus_in(term); else term_visual_focus_out(term); + /* TODO: remove - shouldn't be necessary with render_resize_force() */ if (!resized) { /* * If we didn't resize, we won't be commit a new surface