if the containment it's an offscreen widget, don't allow to claim a screen, after all it's *off*screen
fixes the switch to a dashboard with an independent widget set svn path=/trunk/KDE/kdelibs/; revision=1207374
This commit is contained in:
parent
5fe66eb33b
commit
3e57946f66
@ -973,6 +973,12 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn
|
||||
// a screen of -1 means no associated screen.
|
||||
Corona *corona = q->corona();
|
||||
Q_ASSERT(corona);
|
||||
|
||||
//if it's an offscreen widget, don't allow to claim a screen, after all it's *off*screen
|
||||
if (corona->offscreenWidgets().contains(q)) {
|
||||
return;
|
||||
}
|
||||
|
||||
int numScreens = corona->numScreens();
|
||||
if (newScreen < -1) {
|
||||
newScreen = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user