don't change a widget's active state in QWindowsWindow::setWindowState
authorJoerg Bornemann <joerg.bornemann@nokia.com>
Mon, 2 Jul 2012 10:36:18 +0000 (12:36 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Aug 2012 00:26:52 +0000 (02:26 +0200)
commita992a12bec27d85ae75b31c2916ea3befff497fe
treeef633c4bd240e841d0ac615e5bce36a8eb832b9a
parent30ec535cb6d0f14500f11cdcfd4053fc52a7eca6
don't change a widget's active state in QWindowsWindow::setWindowState

QWindow::setWindowState is not supposed to set the window active.
The method requestActivateWindow() should be used for that.

When switching from and to fullscreen mode we're always passing
SWP_NOACTIVATE to SetWindowPos to not change the activation state
of the window. This is inverse to the old behaviour, which did not
have an effect.

Change-Id: I339337935cdad76b3ef252202e92177f37543038
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qwindowswindow.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp