Emit geometry changes on screen added/removed events

This commit is contained in:
Martin Klapetek 2014-03-11 15:29:43 +01:00
parent 6a1fa18986
commit 699057ad33

View File

@ -377,6 +377,9 @@ void ShellCorona::screenAdded(QScreen *screen)
connect(screen, SIGNAL(destroyed(QObject*)), SLOT(screenRemoved(QObject*)));
view->show();
emit availableScreenRectChanged();
emit availableScreenRegionChanged();
}
@ -408,6 +411,10 @@ void ShellCorona::screenRemoved(QObject *screen)
foreach (PanelView *view, d->panelViews) {
view->setScreen(QGuiApplication::primaryScreen());
}
emit availableScreenRectChanged();
emit availableScreenRegionChanged();
}
void ShellCorona::createWaitingPanels()