xwayland: flush XCB connection to mitigate race between Raise and input
Some checks are pending
labwc.github.io / notify (push) Waiting to run

This commit is contained in:
John Lindgren 2025-12-02 13:33:07 -05:00 committed by Consolatis
parent c4277ab507
commit d748dc78bc
3 changed files with 24 additions and 0 deletions

View file

@ -1438,3 +1438,13 @@ xwayland_update_workarea(struct server *server)
};
wlr_xwayland_set_workareas(server->xwayland, &workarea, 1);
}
void
xwayland_flush(struct server *server)
{
if (!server->xwayland || !server->xwayland->xwm) {
return;
}
xcb_flush(wlr_xwayland_get_xwm_connection(server->xwayland));
}