mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Add dynamic output resizing for Wayland backend
This allows outputs to: - Not support modesetting - Resize themselves
This commit is contained in:
parent
c9d5a0b2fb
commit
b9d36c8149
10 changed files with 75 additions and 90 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue