diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-12 16:35:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-12 16:35:28 +0000 |
| commit | 6d0f8e52cb3dee31fa1e4a4b595f02b77f9abac6 (patch) | |
| tree | 1757cc9ff23a8eaafedad21ab04f047ed8e9362c | |
| parent | readme: use unicode RIGHT ARROW instead of '->' (diff) | |
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.
| -rw-r--r-- | wayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
