mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: loop through all sub-surfaces when switching sync/desync mode
This commit is contained in:
parent
de9fcbc339
commit
8c98dfc51a
1 changed files with 5 additions and 4 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "slave.h"
|
||||
#include "vt.h"
|
||||
|
||||
#define ALEN(v) (sizeof(v) / sizeof(v[0]))
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||
|
||||
|
|
@ -1636,14 +1637,14 @@ term_visual_focus_in(struct terminal *term)
|
|||
|
||||
#if 1 /* Weston seems to be buggy with synchronized CSDs */
|
||||
if (term->window->use_csd == CSD_YES) {
|
||||
for (int i = 0; i < 5; i++)
|
||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||
wl_subsurface_set_desync(term->window->csd.sub_surface[i]);
|
||||
}
|
||||
#endif
|
||||
render_csd(term);
|
||||
#if 1
|
||||
if (term->window->use_csd == CSD_YES) {
|
||||
for (int i = 0; i < 5; i++)
|
||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||
wl_subsurface_set_sync(term->window->csd.sub_surface[i]);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -1662,14 +1663,14 @@ term_visual_focus_out(struct terminal *term)
|
|||
|
||||
#if 1
|
||||
if (term->window->use_csd == CSD_YES) {
|
||||
for (int i = 0; i < 5; i++)
|
||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||
wl_subsurface_set_desync(term->window->csd.sub_surface[i]);
|
||||
}
|
||||
#endif
|
||||
render_csd(term);
|
||||
#if 1
|
||||
if (term->window->use_csd == CSD_YES) {
|
||||
for (int i = 0; i < 5; i++)
|
||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||
wl_subsurface_set_sync(term->window->csd.sub_surface[i]);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue