mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-19 09:53:56 +02:00
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:
@@ -599,7 +599,7 @@ bool Editor::supports_ewmh_active_window() const {
|
|||||||
THROW_X11_ERROR(error);
|
THROW_X11_ERROR(error);
|
||||||
|
|
||||||
const bool active_window_property_exists =
|
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;
|
supports_ewmh_active_window_cache = active_window_property_exists;
|
||||||
|
|
||||||
return active_window_property_exists;
|
return active_window_property_exists;
|
||||||
|
|||||||
Reference in New Issue
Block a user