From 2ddfb79d6839d16024a9d1fc15f01c8604ca088a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Tue, 4 Jul 2023 01:31:40 -0400 Subject: [PATCH] Revert "Fix crash in net_wm_state_is_cb when running GCC ASan-enabled build" This reverts commit 35e4bf77da1911b920e20e86534db4840fdc761e. This simply caused the callback to never be called. --- src/conio/x_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/x_events.c b/src/conio/x_events.c index a013c74da8..e96a558544 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -1538,7 +1538,7 @@ net_wm_state_is_cb(bool (*cb)(Atom)) break; } ret = (Atom *)prop; - if (nir == sizeof(Atom) && cb(*ret)) + if (cb(*ret)) is = true; x11.XFree(prop); if (is) -- GitLab