mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/wayland: dispatch remote display when waiting for a configure event
We don't need to process all events, only those that come from the host compositor. This also avoids running user event handlers while in the middle of committing an output. Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3857
This commit is contained in:
parent
cedcd3252a
commit
27d2eb8596
1 changed files with 2 additions and 2 deletions
|
|
@ -585,8 +585,8 @@ static bool output_commit(struct wlr_output *wlr_output,
|
|||
|
||||
wl_display_flush(output->backend->remote_display);
|
||||
while (!output->configured) {
|
||||
if (wl_event_loop_dispatch(output->backend->event_loop, -1) == -1) {
|
||||
wlr_log(WLR_ERROR, "wl_event_loop_dispatch() failed");
|
||||
if (wl_display_dispatch(output->backend->remote_display) == -1) {
|
||||
wlr_log(WLR_ERROR, "wl_display_dispatch() failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue