diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 10:20:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 10:20:13 +0000 |
| commit | aa9e87ffb004e7e453a385d7a166e719c0ebec48 (patch) | |
| tree | 169381ad456e62e06016277f8c1bfdb8185e09d8 | |
| parent | term: 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
