panels in multiscreen is broken, add a todo

panel views should be created/deleted according to screen attach/detach
This commit is contained in:
Marco Martin 2014-01-17 19:04:03 +01:00
parent da6df37de5
commit 9e25b45c04

View File

@ -345,6 +345,9 @@ void ShellCorona::screenRemoved(QObject *screen)
}
//move all panels on a deleted screen to the primary screen
//FIXME: this will break when a second screen is added again
//as in plasma1, panel should be hidden, panelView deleted.
//possibly similar to exportLayout/importLayout of Activities
foreach (PanelView *view, d->panelViews) {
view->setScreen(QGuiApplication::primaryScreen());
}