Permalink
Browse files

[WORKAROUND] changed to execute gesture action even if it can't get a…

…ny gesture-windows

In my environment, getGestureWindow() is always failed and "ALL" actions aren't dispatched.
So I apply this workaround to confirm "ALL" actions in this case.
  • Loading branch information...
1 parent e4fd0a5 commit 11e4b3d6cc0ca313ec0d29f45546eb3b9850d187 @co3k committed Jul 8, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/touchegg/gestures/handler/GestureHandler.cpp
@@ -196,10 +196,14 @@ Gesture *GestureHandler::createGesture(const QString &type, int id,
return NULL;
// Vemos sobre que ventana se ha ejecutado
- Window gestureWindow = this->getGestureWindow(
- attrs.value(GEIS_GESTURE_ATTRIBUTE_CHILD_WINDOW_ID).toInt());
- if (gestureWindow == None)
- return NULL;
+ int childWindowId = attrs.value(GEIS_GESTURE_ATTRIBUTE_CHILD_WINDOW_ID).toInt();
+ Window gestureWindow = this->getGestureWindow(childWindowId);
+
+ if (gestureWindow == None) {
+ qDebug() << "[+] Missing gesture window:";
+ qDebug() << "\tChild Window Id ->" << childWindowId;
+ }
+
QString appClass = this->getAppClass(gestureWindow);
// Creamos y asignamos la acción asociada al gesto

0 comments on commit 11e4b3d

Please sign in to comment.