Add dynamic output resizing for Wayland backend

This allows outputs to:
- Not support modesetting
- Resize themselves
This commit is contained in:
Drew DeVault 2017-06-20 17:51:45 -04:00
parent c9d5a0b2fb
commit b9d36c8149
10 changed files with 75 additions and 90 deletions

View file

@ -12,18 +12,17 @@
static int dispatch_events(int fd, uint32_t mask, void *data) {
struct wlr_backend_state *state = data;
int count = 0;
if(mask & WL_EVENT_READABLE)
if (mask & WL_EVENT_READABLE) {
count = wl_display_dispatch(state->remote_display);
if(mask & WL_EVENT_WRITABLE)
}
if (mask & WL_EVENT_WRITABLE) {
count = wl_display_flush(state->remote_display);
}
if (mask == 0) {
count = wl_display_dispatch_pending(state->remote_display);
wl_display_flush(state->remote_display);
}
return count;
}