1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-10 21:18:19 +03:00

track primary screen change from qt

--this way we make sure that we track the
primary screen change for wayland also
This commit is contained in:
Michail Vourlakos 2018-04-01 15:17:12 +03:00
parent 83bad3374e
commit dd617d43c8

View File

@ -597,16 +597,7 @@ void DockCorona::addOutput(QScreen *screen)
void DockCorona::primaryOutputChanged()
{
/* qDebug() << "primary changed ### "<< qGuiApp->primaryScreen()->name();
foreach(auto scr, qGuiApp->screens()){
qDebug() << "Found screen: "<<scr->name();
}*/
//if (m_dockViews.count()==1 && qGuiApp->screens().size()==1) {
// foreach(auto view, m_dockViews) {
// view->setScreenToFollow(qGuiApp->primaryScreen());
// }
// }
m_docksScreenSyncTimer.start();
}
void DockCorona::screenRemoved(QScreen *screen)