mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
quirks: weston_csd_{on,off}: don't do anything in fullscreen mode
This commit is contained in:
parent
af2e33b78e
commit
be0d620669
1 changed files with 4 additions and 0 deletions
4
quirks.c
4
quirks.c
|
|
@ -61,6 +61,8 @@ quirk_weston_csd_on(struct terminal *term)
|
|||
{
|
||||
if (term->window->use_csd != CSD_YES)
|
||||
return;
|
||||
if (term->window->is_fullscreen)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||
quirk_weston_subsurface_desync_on(term->window->csd.sub_surface[i]);
|
||||
|
|
@ -71,6 +73,8 @@ quirk_weston_csd_off(struct terminal *term)
|
|||
{
|
||||
if (term->window->use_csd != CSD_YES)
|
||||
return;
|
||||
if (term->window->is_fullscreen)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||
quirk_weston_subsurface_desync_off(term->window->csd.sub_surface[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue