Do non-getting XCB requests synchronously

This commit is contained in:
Ilya Fedin 2024-06-24 13:59:06 +04:00 committed by John Preston
parent ba89912834
commit 648b23b548

View file

@ -89,13 +89,16 @@ void XCBSkipTaskbar(QWindow *window, bool skip) {
xev.data.data32[3] = 0; xev.data.data32[3] = 0;
xev.data.data32[4] = 0; xev.data.data32[4] = 0;
xcb_send_event( free(
connection, xcb_request_check(
false, connection,
root, xcb_send_event_checked(
XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT connection,
| XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY, false,
reinterpret_cast<const char*>(&xev)); root,
XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT
| XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY,
reinterpret_cast<const char*>(&xev))));
} }
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION #endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION