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:
parent
83bad3374e
commit
dd617d43c8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user