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
This commit is contained in:
parent
65b012ebe9
commit
b47098dd30
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue