diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-02-24 09:18:10 -0800 |
---|---|---|
committer | Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com> | 2017-03-08 09:23:44 +0000 |
commit | 8afc6146be513e7adee6e4ade342e28951bfefc6 (patch) | |
tree | 19bddfb295d0280f95da149618e51aa05a98fb67 /header.BSD | |
parent | 40ace7a2a0f5cf1e3f097500240b17a2b9cabf2d (diff) |
Windows QPA: Better recover from removed screens when fullscreen
QWindowsWindow::handleResized would call isFullScreen_sys which checks
if the window's screen geometry matches the one of the window. When
switching back from fullscreen, Windows will have set the geometry to
fill the next window, but we don't switch QScreen until later in that
function, inside handleGeometryChange. This would result in our window
to take the whole screen geometry, but the FullScreen state wouldn't
be transferred to the new screen.
Fix the issue by using screenForGeometry and check if we are fullscreen
on any screen.
Also make sure that we check the validity of m_savedFrameGeometry when
restoring after a screen remove, since we would previously restore to an
area not covered by any screen anymore.
Change-Id: I43bc02738007918e9a26c1d27a699c51d3365034
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'header.BSD')
0 files changed, 0 insertions, 0 deletions