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.
This commit is contained in:
Daniel Eklöf 2020-05-12 18:35:28 +02:00
parent f156f3f4bd
commit 6d0f8e52cb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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