diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-26 15:57:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 15:57:28 -0400 |
commit | b597f5e3803c02e8292271899991f6c663097919 (patch) | |
tree | 9a0dfb6b6d8d92e59a5f840b3c379f1cde4acf0c | |
parent | 4dfcbcf5dd17963c83e839ac86f684ac10be3a70 (diff) | |
parent | da504f9253c0cb60cd317dcfd1659a6e14cc8116 (diff) |
Merge pull request #1004 from emersion/surface-buffer-send-release
surface: remove wl_resource_post_event
-rw-r--r-- | types/wlr_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 775f7adf..8a05657e 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -31,7 +31,7 @@ static void surface_handle_buffer_destroy(struct wl_listener *listener, static void surface_state_release_buffer(struct wlr_surface_state *state) { if (state->buffer) { - wl_resource_post_event(state->buffer, WL_BUFFER_RELEASE); + wl_buffer_send_release(state->buffer); surface_state_reset_buffer(state); } } |