Commit f070a245 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

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
parent 2f738a21
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment