summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-05-28 10:17:32 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-28 19:56:50 +0200
commit81e981a704116ca7b1b619a2c1e8db837046d2cf (patch)
tree97ec083266ca22031470ac63d13094571c62af81 /src/plugins/platforms/windows
parent85a6446164531ad400e1e2a62a42353c85571a2c (diff)
Fix QPlatformWindow::initialGeometry() to not touch large windows.
Do not touch windows whose geometry (including the unknown frame size) is likely to be larger than the screen. Remove fix-up in the Windows plugin. Task-number: QTBUG-30142 Task-number: QTBUG-31071 Change-Id: I13a8ffb9fb9d8c71d35de75094275388fa427f2c Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows')
-rw-r--r--src/plugins/platforms/windows/qwindowswindow.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp
index 8ce6dcc9e7..9d817c2043 100644
--- a/src/plugins/platforms/windows/qwindowswindow.cpp
+++ b/src/plugins/platforms/windows/qwindowswindow.cpp
@@ -503,15 +503,6 @@ QWindowsWindow::WindowData
const QWindowCreationContextPtr context(new QWindowCreationContext(w, rect, data.customMargins, style, exStyle));
QWindowsContext::instance()->setWindowCreationContext(context);
- QRect screenGeometry;
- if (QScreen *screen = w->screen())
- screenGeometry = screen->availableVirtualGeometry();
-
- if (context->frameX < screenGeometry.left())
- context->frameX = screenGeometry.left();
- if (context->frameY < screenGeometry.top())
- context->frameY = screenGeometry.top();
-
if (QWindowsContext::verboseWindows)
qDebug().nospace()
<< "CreateWindowEx: " << w << *this