From 692fd7a3a28b539f39d553c926bba9d4b67dbbc1 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 8 Dec 2021 05:25:04 +0400 Subject: [PATCH] Use generic XCB::GetRootWindow instead of QPlatformNativeInterface-based GetRootWindowFromQt --- ui/platform/linux/ui_utility_linux.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/platform/linux/ui_utility_linux.cpp b/ui/platform/linux/ui_utility_linux.cpp index 2a7fb2d..240fc0c 100644 --- a/ui/platform/linux/ui_utility_linux.cpp +++ b/ui/platform/linux/ui_utility_linux.cpp @@ -132,7 +132,7 @@ std::optional XCBCurrentWorkspace() { return std::nullopt; } - const auto root = base::Platform::XCB::GetRootWindowFromQt(); + const auto root = base::Platform::XCB::GetRootWindow(connection); if (!root.has_value()) { return std::nullopt; } @@ -220,7 +220,7 @@ std::optional XCBIsOverlapped( return std::nullopt; } - const auto root = base::Platform::XCB::GetRootWindowFromQt(); + const auto root = base::Platform::XCB::GetRootWindow(connection); if (!root.has_value()) { return std::nullopt; } @@ -345,7 +345,7 @@ bool ShowXCBWindowMenu(QWindow *window) { return false; } - const auto root = base::Platform::XCB::GetRootWindowFromQt(); + const auto root = base::Platform::XCB::GetRootWindow(connection); if (!root.has_value()) { return false; }