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(
xcb_request_check(
connection,
xcb_send_event_checked(
connection, connection,
false, false,
root, root,
XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT
| XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY, | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY,
reinterpret_cast<const char*>(&xev)); reinterpret_cast<const char*>(&xev))));
} }
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION #endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION