summaryrefslogtreecommitdiff
path: root/tizen/src/ui/menu
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/src/ui/menu')
-rw-r--r--tizen/src/ui/menu/contextmenu.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tizen/src/ui/menu/contextmenu.cpp b/tizen/src/ui/menu/contextmenu.cpp
index 1c14d00e47..fb7e4b4dcb 100644
--- a/tizen/src/ui/menu/contextmenu.cpp
+++ b/tizen/src/ui/menu/contextmenu.cpp
@@ -629,8 +629,13 @@ bool ContextMenu::eventFilter(QObject *obj, QEvent *event)
QMouseEvent *mouseEvent = dynamic_cast<QMouseEvent *>(event);
if (mouseEvent != NULL && mouseEvent->button() == Qt::RightButton) {
- mouseEvent->ignore(); /* filtering */
- return true;
+ /* if menu was selected then filter out the this event */
+ if (mouseEvent->x() >= 0 && mouseEvent->y() >= 0 &&
+ mouseEvent->x() <= geometry().width() &&
+ mouseEvent->y() <= geometry().height()) {
+ mouseEvent->ignore(); /* filtering */
+ return true;
+ }
}
} else if (event->type() == QEvent::Show) {
if (parent->getMainView()->isGrabWindow() == true) {