mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-13 05:33:51 -04: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)
|
if (term->window->use_csd != CSD_YES)
|
||||||
return;
|
return;
|
||||||
|
if (term->window->is_fullscreen)
|
||||||
|
return;
|
||||||
|
|
||||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||||
quirk_weston_subsurface_desync_on(term->window->csd.sub_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)
|
if (term->window->use_csd != CSD_YES)
|
||||||
return;
|
return;
|
||||||
|
if (term->window->is_fullscreen)
|
||||||
|
return;
|
||||||
|
|
||||||
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
for (int i = 0; i < ALEN(term->window->csd.surface); i++)
|
||||||
quirk_weston_subsurface_desync_off(term->window->csd.sub_surface[i]);
|
quirk_weston_subsurface_desync_off(term->window->csd.sub_surface[i]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue