summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/kernel/qt_cocoa_helpers_mac.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm
index d27c775..2b2259c 100644
--- a/src/gui/kernel/qt_cocoa_helpers_mac.mm
+++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm
@@ -876,6 +876,10 @@ bool qt_mac_handleMouseEvent(void * /* NSView * */view, void * /* NSEvent * */ev
QWidget *widgetToGetMouse = qwidget;
QWidget *popup = qAppInstance()->activePopupWidget();
NSView *tmpView = theView;
+ if (mac_mouse_grabber && mac_mouse_grabber != widgetToGetMouse) {
+ widgetToGetMouse = mac_mouse_grabber;
+ tmpView = qt_mac_nativeview_for(widgetToGetMouse);
+ }
if (popup && popup != qwidget->window()) {
widgetToGetMouse = popup;