mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
tearing: add fullscreen option
If set, labwc will try to automatically enable tearing for fullscreen applications. Fixes: #1557
This commit is contained in:
parent
7110b7cf3e
commit
db7f300554
5 changed files with 33 additions and 5 deletions
|
|
@ -44,6 +44,12 @@ get_tearing_preference(struct output *output)
|
|||
return false;
|
||||
}
|
||||
|
||||
/* If configured, automatically enable tearing for fullscreen applications */
|
||||
if (rc.allow_tearing == LAB_TEARING_FULLSCREEN
|
||||
&& server->active_view->fullscreen) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* If the active view requests tearing, or it is toggled on with action, allow it */
|
||||
return server->active_view->tearing_hint;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue