|
|
@ -446,7 +446,7 @@ update_event_mask(uint32_t mask, void *data) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void |
|
|
|
static int |
|
|
|
wayland_compositor_handle_event(int fd, uint32_t mask, void *data) |
|
|
|
wayland_compositor_handle_event(int fd, uint32_t mask, void *data) |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct wayland_compositor *c = data; |
|
|
|
struct wayland_compositor *c = data; |
|
|
@ -455,6 +455,8 @@ wayland_compositor_handle_event(int fd, uint32_t mask, void *data) |
|
|
|
wl_display_iterate(c->parent.display, WL_DISPLAY_READABLE); |
|
|
|
wl_display_iterate(c->parent.display, WL_DISPLAY_READABLE); |
|
|
|
if (mask & WL_EVENT_WRITEABLE) |
|
|
|
if (mask & WL_EVENT_WRITEABLE) |
|
|
|
wl_display_iterate(c->parent.display, WL_DISPLAY_WRITABLE); |
|
|
|
wl_display_iterate(c->parent.display, WL_DISPLAY_WRITABLE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void |
|
|
|
static void |
|
|
|