Merge pull request #1004 from emersion/surface-buffer-send-release

surface: remove wl_resource_post_event
This commit is contained in:
Drew DeVault 2018-05-26 15:57:28 -04:00 committed by GitHub
commit b597f5e380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}