mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wayland: term_visual_focus_{in,out} handles already being focused/defocused
This commit is contained in:
parent
80dfd5b645
commit
aa9e87ffb0
1 changed files with 2 additions and 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue