i3bar: Bugfix: Don’t crash when tray_output is not set (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg 2011-10-21 23:15:15 +01:00
parent 77961ad9c8
commit 014c3e4b95
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}