config: add allowTearing option

This commit is contained in:
Ph42oN 2024-01-01 13:47:02 +02:00
parent 7f357a388b
commit 2f0a9ef158
5 changed files with 56 additions and 1 deletions

View file

@ -34,6 +34,12 @@ enum adaptive_sync_mode {
LAB_ADAPTIVE_SYNC_FULLSCREEN,
};
enum tearing_mode {
LAB_TEARING_DISABLED,
LAB_TEARING_ENABLED,
LAB_TEARING_FULLSCREEN,
};
struct usable_area_override {
struct border margin;
char *output;
@ -53,6 +59,7 @@ struct rcxml {
bool xdg_shell_server_side_deco;
int gap;
enum adaptive_sync_mode adaptive_sync;
enum tearing_mode allow_tearing;
bool reuse_output_mode;
enum view_placement_policy placement_policy;

View file

@ -357,6 +357,7 @@ struct output {
bool leased;
bool gamma_lut_changed;
bool tearing;
};
#undef LAB_NR_LAYERS