Last of the dual-head non-xin fixes. I would appreciate if someone can test
non-xin dualhead with HEAD to see how it works now, and what major things are broken. Meanwhile I have ~29 fixes still remaining to be committed. svn path=/trunk/kdebase/kdesktop/lock/; revision=207745
This commit is contained in:
parent
f85406ae15
commit
3fae0948db
2 changed files with 4 additions and 2 deletions
|
@ -55,7 +55,8 @@ void PopupInfo::reset()
|
||||||
KConfig gc("kdeglobals", false, false);
|
KConfig gc("kdeglobals", false, false);
|
||||||
gc.setGroup("Windows");
|
gc.setGroup("Windows");
|
||||||
QRect r;
|
QRect r;
|
||||||
if (gc.readBoolEntry("XineramaEnabled", true) &&
|
if (QApplication::desktop()->isVirtualDesktop() &&
|
||||||
|
gc.readBoolEntry("XineramaEnabled", true) &&
|
||||||
gc.readBoolEntry("XineramaPlacementEnabled", true)) {
|
gc.readBoolEntry("XineramaPlacementEnabled", true)) {
|
||||||
int screen = desktop->screenNumber( QCursor::pos() );
|
int screen = desktop->screenNumber( QCursor::pos() );
|
||||||
r = desktop->screenGeometry(screen);
|
r = desktop->screenGeometry(screen);
|
||||||
|
|
|
@ -99,7 +99,8 @@ void TabBox::reset()
|
||||||
KConfig gc("kdeglobals", false, false);
|
KConfig gc("kdeglobals", false, false);
|
||||||
gc.setGroup("Windows");
|
gc.setGroup("Windows");
|
||||||
|
|
||||||
if (gc.readBoolEntry("XineramaEnabled", true) &&
|
if (QApplication::desktop()->isVirtualDesktop() &&
|
||||||
|
gc.readBoolEntry("XineramaEnabled", true) &&
|
||||||
gc.readBoolEntry("XineramaPlacementEnabled", true)) {
|
gc.readBoolEntry("XineramaPlacementEnabled", true)) {
|
||||||
int screen = desktop->screenNumber( QCursor::pos() );
|
int screen = desktop->screenNumber( QCursor::pos() );
|
||||||
r = desktop->screenGeometry(screen);
|
r = desktop->screenGeometry(screen);
|
||||||
|
|
Loading…
Reference in a new issue