aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 10:20:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 10:20:13 +0000
commitaa9e87ffb004e7e453a385d7a166e719c0ebec48 (patch)
tree169381ad456e62e06016277f8c1bfdb8185e09d8
parentterm: visual_focus_{in,out}: do nothing if already focused/defocused (diff)
wayland: term_visual_focus_{in,out} handles already being focused/defocused
-rw-r--r--wayland.c4
1 files 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)