mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: visual_focus_in/out: redraw CSDs
We draw the CSDs in a darker color when we're inactive. Weston seems to be buggy with synchronized subsurfaces, so temporarily reconfigure them to desynchronized surfaces.
This commit is contained in:
parent
c0e3db1712
commit
e9d3e7d87f
1 changed files with 18 additions and 0 deletions
18
terminal.c
18
terminal.c
|
|
@ -1633,6 +1633,15 @@ term_visual_focus_in(struct terminal *term)
|
|||
if (term->cursor_blink.active)
|
||||
cursor_blink_start_timer(term);
|
||||
|
||||
#if 1
|
||||
for (int i = 0; i < 5; i++)
|
||||
wl_subsurface_set_desync(term->window->csd.sub_surface[i]);
|
||||
#endif
|
||||
render_csd(term);
|
||||
#if 1
|
||||
for (int i = 0; i < 5; i++)
|
||||
wl_subsurface_set_sync(term->window->csd.sub_surface[i]);
|
||||
#endif
|
||||
cursor_refresh(term);
|
||||
}
|
||||
|
||||
|
|
@ -1646,6 +1655,15 @@ term_visual_focus_out(struct terminal *term)
|
|||
if (term->cursor_blink.active)
|
||||
cursor_blink_stop_timer(term);
|
||||
|
||||
#if 1
|
||||
for (int i = 0; i < 5; i++)
|
||||
wl_subsurface_set_desync(term->window->csd.sub_surface[i]);
|
||||
#endif
|
||||
render_csd(term);
|
||||
#if 1
|
||||
for (int i = 0; i < 5; i++)
|
||||
wl_subsurface_set_sync(term->window->csd.sub_surface[i]);
|
||||
#endif
|
||||
cursor_refresh(term);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue