summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-08-24 15:01:16 +0200
committerLoïc Collignon [ IoT.bzh ] <loic.collignon@iot.bzh>2018-08-24 13:06:13 +0000
commit04990a8e75aeaba041d8bf92ae62fddbf8d0e362 (patch)
treebb91e9f9950536a01bc8cf6813351c254b9caad1
parent5a708f35570b81db4f8de66763c7989874792af0 (diff)
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 <loic.collignon@iot.bzh>
-rw-r--r--app/main.cpp2
1 files changed, 1 insertions, 1 deletions
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);