~gerboland/qtubuntu/upstream-closer

« back to all changes in this revision

Viewing changes to src/ubuntumirclient/window.cpp

  • Committer: Nick Dedekind
  • Date: 2016-12-09 16:48:45 UTC
  • Revision ID: nick.dedekind@canonical.com-20161209164845-jfk9qq0fy43ixro8
only flush non-input events

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
        QWindowSystemInterface::handleWindowActivated(window(), Qt::ActiveWindowFocusReason);
763
763
    } else {
764
764
        // Flush events so that we update QGuiApplicationPrivate::focus_window first
765
 
        QWindowSystemInterface::flushWindowSystemEvents();
 
765
        QWindowSystemInterface::flushWindowSystemEvents(QEventLoop::ExcludeUserInputEvents);
766
766
 
767
767
        if (window() == QGuiApplicationPrivate::focus_window) { // don't handle unfocus if this window wasn't currently focused.
768
768
            QWindowSystemInterface::handleWindowActivated(nullptr, Qt::ActiveWindowFocusReason);