mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-17 22:05:22 -05:00
wayland: xdg-top-level-configure: call term_visual_focus_{in,out}
This commit is contained in:
parent
6f281cebfb
commit
0e40e1c711
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue