tearing_control: adjust to latest sway changes

* changed all remaining tearing_allowed booleans to allow_tearing to better reflect the config options
This commit is contained in:
Ricardo Steijn 2024-01-28 01:01:04 +01:00
parent cce9b0a7f1
commit e12ac32741
10 changed files with 77 additions and 59 deletions

View file

@ -289,7 +289,7 @@ struct output_config {
enum render_bit_depth render_bit_depth;
bool set_color_transform;
struct wlr_color_transform *color_transform;
int tearing_allowed;
int allow_tearing;
char *background;
char *background_option;

View file

@ -73,7 +73,8 @@ struct sway_output {
int max_render_time; // In milliseconds
struct wl_event_source *repaint_timer;
bool gamma_lut_changed;
bool tearing_allowed;
bool allow_tearing;
bool tearing_state, tearing_state_changed;
};
struct sway_output_non_desktop {

View file

@ -4,6 +4,7 @@
#include <wlr/config.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_scene.h>
#include <wlr/types/wlr_tearing_control_v1.h>
#include "sway/config.h"
#if WLR_HAS_XWAYLAND
#include <wlr/xwayland.h>
@ -119,7 +120,7 @@ struct sway_view {
enum seat_config_shortcuts_inhibit shortcuts_inhibit;
enum sway_view_tearing_mode tearing_mode;
bool tearing_hint;
enum wp_tearing_control_v1_presentation_hint tearing_hint;
};
struct sway_xdg_shell_view {