macOS: Remove dead code in window activation handling
Change-Id: I321ab68b51c4ba63204c0e15fec74164e2c93d34 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
8fe3680193
commit
c7318e899e
@ -353,21 +353,6 @@ QT_USE_NAMESPACE
|
||||
[reflectionDelegate applicationDidBecomeActive:notification];
|
||||
|
||||
QWindowSystemInterface::handleApplicationStateChanged(Qt::ApplicationActive);
|
||||
/*
|
||||
onApplicationChangedActivation(true);
|
||||
|
||||
if (!QWidget::mouseGrabber()){
|
||||
// Update enter/leave immidiatly, don't wait for a move event. But only
|
||||
// if no grab exists (even if the grab points to this widget, it seems, ref X11)
|
||||
QPoint qlocal, qglobal;
|
||||
QWidget *widgetUnderMouse = 0;
|
||||
qt_mac_getTargetForMouseEvent(0, QEvent::Enter, qlocal, qglobal, 0, &widgetUnderMouse);
|
||||
QApplicationPrivate::dispatchEnterLeave(widgetUnderMouse, 0);
|
||||
qt_last_mouse_receiver = widgetUnderMouse;
|
||||
qt_last_native_mouse_receiver = widgetUnderMouse ?
|
||||
(widgetUnderMouse->internalWinId() ? widgetUnderMouse : widgetUnderMouse->nativeParentWidget()) : 0;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)applicationDidResignActive:(NSNotification *)notification
|
||||
@ -377,15 +362,6 @@ QT_USE_NAMESPACE
|
||||
[reflectionDelegate applicationDidResignActive:notification];
|
||||
|
||||
QWindowSystemInterface::handleApplicationStateChanged(Qt::ApplicationInactive);
|
||||
/*
|
||||
onApplicationChangedActivation(false);
|
||||
|
||||
if (!QWidget::mouseGrabber())
|
||||
QApplicationPrivate::dispatchEnterLeave(0, qt_last_mouse_receiver);
|
||||
qt_last_mouse_receiver = 0;
|
||||
qt_last_native_mouse_receiver = 0;
|
||||
qt_button_down = 0;
|
||||
*/
|
||||
}
|
||||
|
||||
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
|
||||
|
Loading…
Reference in New Issue
Block a user