mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -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 wayland *wayl = data;
|
||||||
struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel);
|
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);
|
term_visual_focus_in(term);
|
||||||
else if (!is_focused && term->visual_focus)
|
else
|
||||||
term_visual_focus_out(term);
|
term_visual_focus_out(term);
|
||||||
|
|
||||||
if (width > 0 && height > 0)
|
if (width > 0 && height > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue