Merge branch 'master' into next

This commit is contained in:
Michael Stapelberg 2013-04-14 22:54:36 +02:00
commit 8247f44e95
1 changed files with 3 additions and 1 deletions

View File

@ -541,7 +541,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;