]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: fix crash when not having tray_output configured (Thanks Layus)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Apr 2013 20:54:15 +0000 (22:54 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Apr 2013 20:54:15 +0000 (22:54 +0200)
i3bar/src/xcb.c

index d5d4eb8659cfedf7a9ecfbc134e72638e6d5fd8d..3cdf6ed7bebc5b49d530a4c6ef8672203569b4a8 100644 (file)
@@ -505,7 +505,9 @@ static void handle_client_message(xcb_client_message_event_t* event) {
             }
             /* In case of tray_output == primary and there is no primary output
              * configured, we fall back to the first available output. */
-            if (output == NULL && strcasecmp("primary", config.tray_output) == 0) {
+            if (output == NULL &&
+                config.tray_output &&
+                strcasecmp("primary", config.tray_output) == 0) {
                 SLIST_FOREACH(walk, outputs, slist) {
                     if (!walk->active)
                         continue;