From 0e40e1c711134a600f7a410585a442edcf058db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 2 Jan 2020 19:37:01 +0100 Subject: [PATCH] wayland: xdg-top-level-configure: call term_visual_focus_{in,out} --- wayland.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wayland.c b/wayland.c index 99e98fe2..7ab1ef2f 100644 --- a/wayland.c +++ b/wayland.c @@ -428,7 +428,11 @@ 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); - term->visual_focus = is_focused; + if (is_focused && !term->visual_focus) + term_visual_focus_in(term); + else if (!is_focused && term->visual_focus) + term_visual_focus_out(term); + render_resize(term, width, height); }