mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
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:
parent
f156f3f4bd
commit
6d0f8e52cb
1 changed files with 2 additions and 1 deletions
|
|
@ -464,13 +464,14 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
|
||||||
win->is_fullscreen = win->configure.is_fullscreen;
|
win->is_fullscreen = win->configure.is_fullscreen;
|
||||||
|
|
||||||
xdg_surface_ack_configure(xdg_surface, serial);
|
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)
|
if (win->configure.is_activated)
|
||||||
term_visual_focus_in(term);
|
term_visual_focus_in(term);
|
||||||
else
|
else
|
||||||
term_visual_focus_out(term);
|
term_visual_focus_out(term);
|
||||||
|
|
||||||
|
/* TODO: remove - shouldn't be necessary with render_resize_force() */
|
||||||
if (!resized) {
|
if (!resized) {
|
||||||
/*
|
/*
|
||||||
* If we didn't resize, we won't be commit a new surface
|
* If we didn't resize, we won't be commit a new surface
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue