From 5b530737d480eaac5943bcf270aa82b592e7ed3b Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Sat, 2 Feb 2019 14:51:09 +0100 Subject: [PATCH] correct fix for #997 --- src/fe-common/core/fe-common-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index d6dbf1f7..15d08771 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -481,8 +481,9 @@ gboolean strarray_find_dest(char **array, const TEXT_DEST_REC *dest) g_return_val_if_fail(dest != NULL, FALSE); g_return_val_if_fail(dest->window != NULL, FALSE); - if (dest->target == NULL && dest->window->name != NULL) - return strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE; + if (dest->target == NULL) + return dest->window->name != NULL && + strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE; item = window_item_find_window(dest->window, dest->server, dest->target); if (item == NULL) {