From ab4b99ec2e661d6904f58ebe7ffd18685beed7fe Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Sun, 19 Sep 2021 14:16:21 +0200 Subject: [PATCH] Fix X11 floatbar: XGetWindowAttributes returns zero on error --- client/X11/xf_floatbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_floatbar.c b/client/X11/xf_floatbar.c index c73653b3a..98b9fe396 100644 --- a/client/X11/xf_floatbar.c +++ b/client/X11/xf_floatbar.c @@ -183,7 +183,7 @@ static BOOL create_floatbar(xfFloatbar* floatbar) xfc = floatbar->xfc; status = XGetWindowAttributes(xfc->display, floatbar->root_window, &attr); - if (status != 0) + if (status == 0) { WLog_WARN(TAG, "XGetWindowAttributes returned %d", status); return FALSE;