From 8353a33e89d0fab4d042e2e6de815358f5d4f7f7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 4 Jan 2025 18:35:12 +1000 Subject: [PATCH] X11Tools: Fix refresh rate query failing with XLib handle --- src/util/x11_tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/x11_tools.cpp b/src/util/x11_tools.cpp index 7c79a5781..faaf5e0a0 100644 --- a/src/util/x11_tools.cpp +++ b/src/util/x11_tools.cpp @@ -240,7 +240,7 @@ std::optional GetRefreshRateFromXRandR(const WindowInfo& wi, Error* error } xcb_window_t window = static_cast(reinterpret_cast(wi.window_handle)); - if (wi.type != WindowInfo::Type::XCB || !connection || window == XCB_NONE) + if (!connection || window == XCB_NONE) { Error::SetStringView(error, "Invalid window handle."); return std::nullopt;