diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2018-08-24 15:01:16 +0200 |
---|---|---|
committer | Loïc Collignon [ IoT.bzh ] <loic.collignon@iot.bzh> | 2018-08-24 13:06:13 +0000 |
commit | 04990a8e75aeaba041d8bf92ae62fddbf8d0e362 (patch) | |
tree | bb91e9f9950536a01bc8cf6813351c254b9caad1 /app/main.cpp | |
parent | 5a708f35570b81db4f8de66763c7989874792af0 (diff) |
App's name is in lowercase on TapShortcut eventguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4
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>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 2 |
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); |