610
610
// so that we don't deactivate windows prematurely.
612
612
mPendingFocusGainedEvents--;
614
613
QWindowSystemInterface::handleWindowActivated(window->window(), Qt::ActiveWindowFocusReason);
616
615
// NB: Since processing of system events is queued, never check qGuiApp->applicationState()