diff --git a/corona.cpp b/corona.cpp index 292ce1b83..15faf9a97 100644 --- a/corona.cpp +++ b/corona.cpp @@ -443,14 +443,19 @@ void Corona::containmentDestroyed(QObject* obj) void Corona::screenResized(int screen) { + bool desktopFound = false; foreach (Containment *c, d->containments) { if (c->screen() == screen) { // trigger a relayout c->setScreen(screen); - return; + desktopFound = desktopFound || c->containmentType() == Containment::DesktopContainment; } } + if (desktopFound) { + return; + } + // a new screen appeared. neat. // FIXME: apparently QDesktopWidget doesn't do the Right Thing when a new screen is plugged in // at runtime. seems it gets confused and thinks it's all one big screen? need to