Cocoa: Get rid of the forward window pointer asap
As soon as we receive an event not related to dragging a QDockWidget out of its area (or a similar use case), we no longer need the forward window. Task-number: QTBUG-37265 Change-Id: I310e9cc2cf099c76e7a88427826d4b97ca0cd9b9 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
49b14f7a8b
commit
4b0016f045
@ -562,9 +562,11 @@ static QTouchDevice *touchDevice = 0;
|
||||
QPointF qtWindowPoint;
|
||||
QPointF qtScreenPoint;
|
||||
QNSView *targetView = self;
|
||||
if (m_platformWindow && m_platformWindow->m_forwardWindow
|
||||
&& (theEvent.type == NSLeftMouseDragged || theEvent.type == NSLeftMouseUp)) {
|
||||
targetView = m_platformWindow->m_forwardWindow->m_qtView;
|
||||
if (m_platformWindow && m_platformWindow->m_forwardWindow) {
|
||||
if (theEvent.type == NSLeftMouseDragged || theEvent.type == NSLeftMouseUp)
|
||||
targetView = m_platformWindow->m_forwardWindow->m_qtView;
|
||||
else
|
||||
m_platformWindow->m_forwardWindow = 0;
|
||||
}
|
||||
|
||||
[targetView convertFromScreen:[NSEvent mouseLocation] toWindowPoint:&qtWindowPoint andScreenPoint:&qtScreenPoint];
|
||||
|
Loading…
Reference in New Issue
Block a user