From: Loïc Collignon Date: Fri, 24 Aug 2018 13:01:16 +0000 (+0200) Subject: App's name is in lowercase on TapShortcut event X-Git-Tag: 5.99.4^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=04990a8e75aeaba041d8bf92ae62fddbf8d0e362;p=apps%2Fmixer.git App's name is in lowercase on TapShortcut event 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 --- 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);