From 04990a8e75aeaba041d8bf92ae62fddbf8d0e362 Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Fri, 24 Aug 2018 15:01:16 +0200 Subject: App's name is in lowercase on TapShortcut event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even if the requested surface is 'Mixer', it is 'mixer' in the TapShortcut's event argument. So that it doesn't call the activateWindow to restore it-self if the comparison is not case insensitive. Bug: SPEC-1653 Change-Id: I086a7bbc92fa1b877aec02c445299015539d6b89 Signed-off-by: Loïc Collignon --- app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/main.cpp b/app/main.cpp index b8ef25a..ac5fb24 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -102,7 +102,7 @@ int main(int argc, char *argv[]) if(json_object_object_get_ex(object, "application_name", &appnameJ)) { const char *appname = json_object_get_string(appnameJ); - if(myname == appname) + if(QString::compare(myname, appname, Qt::CaseInsensitive) == 0) { qDebug("Surface %s got tapShortcut\n", appname); qwm->activateSurface(myname); -- cgit 1.2.3-korg