mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 16:20:10 +01:00
compositor: Make subsurface->synchronized a bool
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
ed6beb1dbf
commit
ee90650c8c
2 changed files with 4 additions and 4 deletions
|
|
@ -1905,7 +1905,7 @@ struct weston_subsurface {
|
||||||
struct weston_surface_state cached;
|
struct weston_surface_state cached;
|
||||||
struct weston_buffer_reference cached_buffer_ref;
|
struct weston_buffer_reference cached_buffer_ref;
|
||||||
|
|
||||||
int synchronized;
|
bool synchronized;
|
||||||
|
|
||||||
/* Used for constructing the view tree */
|
/* Used for constructing the view tree */
|
||||||
struct wl_list unused_views;
|
struct wl_list unused_views;
|
||||||
|
|
|
||||||
|
|
@ -5896,7 +5896,7 @@ subsurface_set_sync(struct wl_client *client, struct wl_resource *resource)
|
||||||
struct weston_subsurface *sub = wl_resource_get_user_data(resource);
|
struct weston_subsurface *sub = wl_resource_get_user_data(resource);
|
||||||
|
|
||||||
if (sub)
|
if (sub)
|
||||||
sub->synchronized = 1;
|
sub->synchronized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -5905,7 +5905,7 @@ subsurface_set_desync(struct wl_client *client, struct wl_resource *resource)
|
||||||
struct weston_subsurface *sub = wl_resource_get_user_data(resource);
|
struct weston_subsurface *sub = wl_resource_get_user_data(resource);
|
||||||
|
|
||||||
if (sub && sub->synchronized) {
|
if (sub && sub->synchronized) {
|
||||||
sub->synchronized = 0;
|
sub->synchronized = false;
|
||||||
|
|
||||||
/* If sub became effectively desynchronized, flush. */
|
/* If sub became effectively desynchronized, flush. */
|
||||||
if (!weston_subsurface_is_synchronized(sub))
|
if (!weston_subsurface_is_synchronized(sub))
|
||||||
|
|
@ -6079,7 +6079,7 @@ weston_subsurface_create(uint32_t id, struct weston_surface *surface,
|
||||||
weston_subsurface_link_parent(sub, parent);
|
weston_subsurface_link_parent(sub, parent);
|
||||||
weston_surface_state_init(surface, &sub->cached);
|
weston_surface_state_init(surface, &sub->cached);
|
||||||
sub->cached_buffer_ref.buffer = NULL;
|
sub->cached_buffer_ref.buffer = NULL;
|
||||||
sub->synchronized = 1;
|
sub->synchronized = true;
|
||||||
|
|
||||||
return sub;
|
return sub;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue