diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-01-12 16:04:33 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-01-18 10:26:19 +0000 |
commit | 23ba2f073cf163b379312d5086a880c7ec040209 (patch) | |
tree | dcda67322194de106fcb1fea22c5fc498a727b04 /header.FDL-OLD | |
parent | 5a628fdb98cf6d9fddb890069f7a8d327bdafadf (diff) |
Windows QPA: Fix QScreen::grabWindow(0) for non-primary screens
Previously, the code grabbed the client rectangle of GetDesktopWindow(),
which is always the primary screen. Fix by using the geometry of
the QPlatformScreen. In addition, subtract x, y from the effective
size when sizes < 0 were passed in as does XCB.
Task-number: QTBUG-58110
Change-Id: I6ed439d2e1da8affd0a1475717d5570017fb1f2b
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'header.FDL-OLD')
0 files changed, 0 insertions, 0 deletions