Bugfix: fix crash when not having tray_output configured (Thanks Layus)
This commit is contained in:
parent
9a91eb83c2
commit
72c279bc39
|
@ -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
|
/* In case of tray_output == primary and there is no primary output
|
||||||
* configured, we fall back to the first available 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) {
|
SLIST_FOREACH(walk, outputs, slist) {
|
||||||
if (!walk->active)
|
if (!walk->active)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue