diff --git a/popupinfo.cpp b/popupinfo.cpp index debb12ddf2..61cd95879b 100644 --- a/popupinfo.cpp +++ b/popupinfo.cpp @@ -55,7 +55,8 @@ void PopupInfo::reset() KConfig gc("kdeglobals", false, false); gc.setGroup("Windows"); QRect r; - if (gc.readBoolEntry("XineramaEnabled", true) && + if (QApplication::desktop()->isVirtualDesktop() && + gc.readBoolEntry("XineramaEnabled", true) && gc.readBoolEntry("XineramaPlacementEnabled", true)) { int screen = desktop->screenNumber( QCursor::pos() ); r = desktop->screenGeometry(screen); diff --git a/tabbox.cpp b/tabbox.cpp index 07c4c54246..fc3703d5fe 100644 --- a/tabbox.cpp +++ b/tabbox.cpp @@ -99,7 +99,8 @@ void TabBox::reset() KConfig gc("kdeglobals", false, false); gc.setGroup("Windows"); - if (gc.readBoolEntry("XineramaEnabled", true) && + if (QApplication::desktop()->isVirtualDesktop() && + gc.readBoolEntry("XineramaEnabled", true) && gc.readBoolEntry("XineramaPlacementEnabled", true)) { int screen = desktop->screenNumber( QCursor::pos() ); r = desktop->screenGeometry(screen);