From f8fe35c75b9536b657aed3e19dc0a739f32e08fa Mon Sep 17 00:00:00 2001 From: kleuter Date: Mon, 4 Dec 2017 14:41:02 +0100 Subject: [PATCH] 5.6.3, fix for https://bugreports.qt.io/browse/QTBUG-40583 --- 5.6.3/src/plugins/platforms/cocoa/qnsview.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/5.6.3/src/plugins/platforms/cocoa/qnsview.mm b/5.6.3/src/plugins/platforms/cocoa/qnsview.mm index 50dda52..5d5f2ff 100644 --- a/5.6.3/src/plugins/platforms/cocoa/qnsview.mm +++ b/5.6.3/src/plugins/platforms/cocoa/qnsview.mm @@ -688,6 +688,16 @@ QT_WARNING_POP return YES; } +- (NSView *)hitTest:(NSPoint)aPoint +{ + NSView *candidate = [super hitTest:aPoint]; + if (candidate == self) { + if (m_window && (m_window->flags() & Qt::WindowTransparentForInput)) + return nil; + } + return candidate; +} + - (void)convertFromScreen:(NSPoint)mouseLocation toWindowPoint:(QPointF *)qtWindowPoint andScreenPoint:(QPointF *)qtScreenPoint { // Calculate the mouse position in the QWindow and Qt screen coordinate system,