From aa9e87ffb004e7e453a385d7a166e719c0ebec48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 3 Jan 2020 11:20:13 +0100 Subject: [PATCH] wayland: term_visual_focus_{in,out} handles already being focused/defocused --- wayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wayland.c b/wayland.c index 0f54abb3..b42711f3 100644 --- a/wayland.c +++ b/wayland.c @@ -422,9 +422,9 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel, struct wayland *wayl = data; struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel); - if (is_focused && !term->visual_focus) + if (is_focused) term_visual_focus_in(term); - else if (!is_focused && term->visual_focus) + else term_visual_focus_out(term); if (width > 0 && height > 0)