mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Switch more XCB code to base::Platform::XCB::Connection
This commit is contained in:
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
|
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||||
void XCBSkipTaskbar(QWindow *window, bool skip) {
|
void XCBSkipTaskbar(QWindow *window, bool skip) {
|
||||||
const auto connection = base::Platform::XCB::GetConnectionFromQt();
|
const base::Platform::XCB::Connection connection;
|
||||||
if (!connection) {
|
if (!connection || xcb_connection_has_error(connection)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -564,7 +564,7 @@ bool SkipTaskbarSupported() {
|
||||||
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||||
if (IsX11()) {
|
if (IsX11()) {
|
||||||
return base::Platform::XCB::IsSupportedByWM(
|
return base::Platform::XCB::IsSupportedByWM(
|
||||||
base::Platform::XCB::GetConnectionFromQt(),
|
base::Platform::XCB::Connection(),
|
||||||
"_NET_WM_STATE_SKIP_TASKBAR");
|
"_NET_WM_STATE_SKIP_TASKBAR");
|
||||||
}
|
}
|
||||||
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue