From 014c3e4b95b574e3b290889c29bd537432553056 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 21 Oct 2011 23:15:15 +0100 Subject: [PATCH] =?utf8?q?i3bar:=20Bugfix:=20Don=E2=80=99t=20crash=20when?= =?utf8?q?=20tray=5Foutput=20is=20not=20set=20(Thanks=20fernandotcl)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- i3bar/src/xcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index a9ecc004..fa3860e8 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1359,7 +1359,8 @@ void reconfig_windows() { } if (!tray_configured && - strcasecmp("none", config.tray_output) != 0) { + (!config.tray_output || + strcasecmp("none", config.tray_output) != 0)) { init_tray(); tray_configured = true; } -- 2.39.5