diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index dc3a6f6d..d6dbf1f7 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -481,7 +481,7 @@ 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) + if (dest->target == NULL && dest->window->name != NULL) return strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE; item = window_item_find_window(dest->window, dest->server, dest->target);