From aa08c8ea787c15701f634345cbd883cc4dfe08cf Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 26 Dec 2016 16:23:55 +0100 Subject: [PATCH] Make workspace name also searchable --- source/dialogs/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/dialogs/window.c b/source/dialogs/window.c index 31c406e7..154b209d 100644 --- a/source/dialogs/window.c +++ b/source/dialogs/window.c @@ -354,6 +354,9 @@ static int window_match ( const Mode *sw, GRegex **tokens, unsigned int index ) if ( !test && c->name != NULL && c->name[0] != '\0' ) { test = token_match ( ftokens, c->name ); } + if ( !test && c->wmdesktopstr != NULL && c->wmdesktopstr[0] != '\0' ) { + test = token_match ( ftokens, c->wmdesktopstr ); + } if ( test == 0 ) { match = 0;