Check property type instead of format

All of these fields should be zero, but this sounds like the better way
to test this.
This commit is contained in:
Robbert van der Helm
2021-07-10 22:24:06 +02:00
parent 916b1ed6c0
commit 82f7a8f799
+1 -1
View File
@@ -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;