From 82f7a8f799107a49314ba71b10903bf1e944a14f Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 10 Jul 2021 22:24:06 +0200 Subject: [PATCH] Check property type instead of format All of these fields should be zero, but this sounds like the better way to test this. --- src/wine-host/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 129c7a4a..cdc11241 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -599,7 +599,7 @@ bool Editor::supports_ewmh_active_window() const { THROW_X11_ERROR(error); const bool active_window_property_exists = - property_reply->format != XCB_ATOM_NONE; + property_reply->type != XCB_ATOM_NONE; supports_ewmh_active_window_cache = active_window_property_exists; return active_window_property_exists;