diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-18 18:23:55 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-18 19:38:11 +0200 |
commit | bb3b9d0156e02d407f0a1278c8bdfcccc5c078b9 (patch) | |
tree | 1462132ff9469b743fdf0f8674611487e49a9a9a | |
parent | d748fd1a8e455685babdd79857c67351f03c6ff3 (diff) |
wlr_surface: use post_event instead of queue
This fixes not sending anything back to the client if the only event
it's waiting for is a buffer release, and nothing else is in the pipe.
Workaround for #102 - there probably is a better solution as weston and
wlc do not need to use post_event here.
-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 cb0aa27f..240360a1 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -292,7 +292,7 @@ release: pixman_region32_fini(&surface->current.buffer_damage); pixman_region32_init(&surface->current.buffer_damage); - wl_resource_queue_event(surface->current.buffer, WL_BUFFER_RELEASE); + wl_resource_post_event(surface->current.buffer, WL_BUFFER_RELEASE); surface->current.buffer = NULL; } |