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:
Daniel Eklöf 2020-01-03 18:58:26 +01:00
parent f7362d381b
commit c118ed9252
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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