From b47098dd30da76988163b22aa34a5a0f68657fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 11 Aug 2012 21:32:27 +0200 Subject: [PATCH] use virtual screen size when desktop is resized QDesktopWidget::screenGeometry() fails if there's a panning or overlapping screen setup REVIEW: 105974 BUG: 302783 FIXED-IN: 4.9.1 --- geometry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index ef0592e056..d3947c97ca 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -67,7 +67,9 @@ void Workspace::desktopResized() { QRect geom; for (int i = 0; i < QApplication::desktop()->screenCount(); i++) { - geom |= QApplication::desktop()->screenGeometry(i); + //do NOT use - QApplication::desktop()->screenGeometry(i) there could be a virtual geometry + // see bug #302783 + geom |= QApplication::desktop()->screen(i)->geometry(); } NETSize desktop_geometry; desktop_geometry.width = geom.width();