Switch more XCB code to base::Platform::XCB::Connection

This commit is contained in:
Ilya Fedin
2024-06-24 13:21:33 +04:00
committed by John Preston
parent c1bc7e6ab1
commit ba89912834
2 changed files with 3 additions and 3 deletions
@@ -51,8 +51,8 @@ using WorkMode = Core::Settings::WorkMode;
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
void XCBSkipTaskbar(QWindow *window, bool skip) {
const auto connection = base::Platform::XCB::GetConnectionFromQt();
if (!connection) {
const base::Platform::XCB::Connection connection;
if (!connection || xcb_connection_has_error(connection)) {
return;
}