mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
wayland: configure: resize before changing visual focus
This hopefully fixes and issue where the visual focus in/out caused a render refresh with the *old* size. This caused the occasional flicker at startup, or when resizing the window. By placing the resize call before the visual focus in/out, we ensure the refresh uses the new size. This is a temporary workaround. The correct solution is to ensure we only call refresh() once.
This commit is contained in:
parent
f7362d381b
commit
c118ed9252
1 changed files with 2 additions and 2 deletions
|
|
@ -507,12 +507,12 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
|
|||
|
||||
win->is_configured = true;
|
||||
|
||||
render_resize(term, win->configure.width, win->configure.height);
|
||||
|
||||
if (win->configure.is_activated)
|
||||
term_visual_focus_in(term);
|
||||
else
|
||||
term_visual_focus_out(term);
|
||||
|
||||
render_resize(term, win->configure.width, win->configure.height);
|
||||
}
|
||||
|
||||
static const struct xdg_surface_listener xdg_surface_listener = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue