mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 23:22:24 +00:00
compositor: remove wlr_surface_role.precommit
It was previously used to handle unmapping properly but is obsolete now.
This commit is contained in:
parent
26676c8c07
commit
d086ee1b9e
@ -74,8 +74,6 @@ struct wlr_surface_state {
|
|||||||
struct wlr_surface_role {
|
struct wlr_surface_role {
|
||||||
const char *name;
|
const char *name;
|
||||||
void (*commit)(struct wlr_surface *surface);
|
void (*commit)(struct wlr_surface *surface);
|
||||||
void (*precommit)(struct wlr_surface *surface,
|
|
||||||
const struct wlr_surface_state *state);
|
|
||||||
void (*unmap)(struct wlr_surface *surface);
|
void (*unmap)(struct wlr_surface *surface);
|
||||||
void (*destroy)(struct wlr_surface *surface);
|
void (*destroy)(struct wlr_surface *surface);
|
||||||
};
|
};
|
||||||
|
@ -434,10 +434,6 @@ static void surface_commit_state(struct wlr_surface *surface,
|
|||||||
struct wlr_surface_state *next) {
|
struct wlr_surface_state *next) {
|
||||||
assert(next->cached_state_locks == 0);
|
assert(next->cached_state_locks == 0);
|
||||||
|
|
||||||
if (surface->role_data != NULL && surface->role->precommit != NULL) {
|
|
||||||
surface->role->precommit(surface, next);
|
|
||||||
}
|
|
||||||
|
|
||||||
wl_signal_emit_mutable(&surface->events.precommit, next);
|
wl_signal_emit_mutable(&surface->events.precommit, next);
|
||||||
|
|
||||||
bool invalid_buffer = next->committed & WLR_SURFACE_STATE_BUFFER;
|
bool invalid_buffer = next->committed & WLR_SURFACE_STATE_BUFFER;
|
||||||
|
Loading…
Reference in New Issue
Block a user