diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-06-02 21:04:16 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-06-02 21:04:16 +0300 |
commit | d086ee1b9e69f8777f9b84ee254d08be96d4cc34 (patch) | |
tree | 07892f404f4b9f445863dade18366213ba474b3f | |
parent | 26676c8c072f813dc2d7e2b2dfe9e2701ce361a7 (diff) |
compositor: remove wlr_surface_role.precommit
It was previously used to handle unmapping properly but is obsolete now.
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 2 | ||||
-rw-r--r-- | types/wlr_compositor.c | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 11379ab4..ddbf30cc 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -74,8 +74,6 @@ struct wlr_surface_state { struct wlr_surface_role { const char *name; 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 (*destroy)(struct wlr_surface *surface); }; diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index c24bca67..3fb3f627 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -434,10 +434,6 @@ static void surface_commit_state(struct wlr_surface *surface, struct wlr_surface_state *next) { 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); bool invalid_buffer = next->committed & WLR_SURFACE_STATE_BUFFER; |