xwayland: flush XCB connection to mitigate race between Raise and input

This commit is contained in:
John Lindgren 2025-12-02 13:33:07 -05:00
parent 499c910954
commit fe7633ea76
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));
}