Skip to content

Commit

Permalink
Merge branch 'jb40880' into 'mer-5.6'
Browse files Browse the repository at this point in the history
Fix crash when a focused window's surface is destroyed.

See merge request mer-core/qtbase!35
  • Loading branch information
adenexter committed May 23, 2018
2 parents 3f59677 + ad9eb80 commit 11c8f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/kernel/qwindow.cpp
Expand Up @@ -1651,7 +1651,7 @@ void QWindow::destroy()
}

if (QGuiApplicationPrivate::focus_window == this)
QGuiApplicationPrivate::focus_window = parent();
QWindowSystemInterface::handleWindowActivated(parent());
if (QGuiApplicationPrivate::currentMouseWindow == this)
QGuiApplicationPrivate::currentMouseWindow = parent();
if (QGuiApplicationPrivate::currentMousePressWindow == this)
Expand Down

0 comments on commit 11c8f00

Please sign in to comment.