summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Endrodi <ext-adam.endrodi@nokia.com>2011-01-24 14:25:46 +0200
committerAdam Endrodi <ext-adam.endrodi@nokia.com>2011-01-24 14:27:25 +0200
commit36a1307df55f239f6869ca78a1a03bfe5f40311b (patch)
treec0c459d33cee14896f875dfc8f5ca60869beec25
parent97ba03382e2e3660d3328562dcbe72096c428967 (diff)
use `windowctl MTT' to send _MEEGOTOUCH_TRANSITION
'M' conflicted with map mode, making test22 fail
-rw-r--r--tests/windowctl/windowctl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/windowctl/windowctl.cpp b/tests/windowctl/windowctl.cpp
index 7676fa1..c0cc1db 100644
--- a/tests/windowctl/windowctl.cpp
+++ b/tests/windowctl/windowctl.cpp
@@ -392,7 +392,7 @@ static void print_usage_and_exit(QString& stdOut)
"l - use InputOnly window class\n"
"j1 - set _MEEGOTOUCH_ALWAYS_MAPPED property to 1\n"
"j2 - set _MEEGOTOUCH_ALWAYS_MAPPED property to 2\n"
- "M - send _MEEGOTOUCH_TRANSITION messages when the window is ARGB\n"
+ "MTT - send _MEEGOTOUCH_TRANSITION messages when the window is ARGB\n"
"n - WM_TYPE_NORMAL window (if 'k' is given, that is the first type)\n"
"d - WM_TYPE_DIALOG window\n"
"i - WM_TYPE_INPUT window\n"
@@ -758,8 +758,9 @@ static bool old_main(QStringList& args, QString& stdOut)
override_redirect = 1;
continue;
}
- if (*p == 'M') {
- send_mtt = 1;
+ if (*p == 'M' && *(p+1) == 'T' && *(p+2) == 'T') {
+ send_mtt = 1;
+ p += 2;
continue;
}
if (*p == 't') {