diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-04 19:32:44 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-04 19:32:44 +0100 |
commit | 6a2ff0dffe37f14510643eda777390bc26d3d256 (patch) | |
tree | ffd0c1880d70d55363a443eb62d6c060e5981c7b | |
parent | 78836298efc6930db482806fadc605de72897ccc (diff) |
compositor: drop surface precommit event
This is unused.
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 1 | ||||
-rw-r--r-- | types/wlr_compositor.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 26530951..cb9f9292 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -174,7 +174,6 @@ struct wlr_surface { struct { struct wl_signal client_commit; - struct wl_signal precommit; // const struct wlr_surface_state * struct wl_signal commit; /** diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index b0ab2338..a3e02655 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -427,8 +427,6 @@ static void surface_commit_state(struct wlr_surface *surface, struct wlr_surface_state *next) { assert(next->cached_state_locks == 0); - wl_signal_emit_mutable(&surface->events.precommit, next); - bool invalid_buffer = next->committed & WLR_SURFACE_STATE_BUFFER; if (invalid_buffer && next->buffer == NULL) { @@ -691,7 +689,6 @@ static struct wlr_surface *surface_create(struct wl_client *client, surface->pending.seq = 1; wl_signal_init(&surface->events.client_commit); - wl_signal_init(&surface->events.precommit); wl_signal_init(&surface->events.commit); wl_signal_init(&surface->events.map); wl_signal_init(&surface->events.unmap); |