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

increase View::timers kwin hack

This commit is contained in:
Michail Vourlakos 2019-05-14 17:12:36 +03:00
parent c41433f7a2
commit ebeabb1033

View File

@ -853,8 +853,8 @@ void View::setLayout(Layout::GenericLayout *layout)
//! IMPORTANT ::: Fixing KWin Faulty Behavior that KWin hides ALL Views when an Activity stops
//! with no reason!!
m_visibleHackTimer1.setInterval(100);
m_visibleHackTimer2.setInterval(1500);
m_visibleHackTimer1.setInterval(400);
m_visibleHackTimer2.setInterval(2500);
m_visibleHackTimer1.setSingleShot(true);
m_visibleHackTimer2.setSingleShot(true);
@ -869,7 +869,10 @@ void View::setLayout(Layout::GenericLayout *layout)
if (m_layout && !inDelete() & !isVisible()) {
setVisible(true);
applyActivitiesToWindows();
//qDebug() << "View:: Enforce reshow from timer 1...";
emit activitiesChanged();
} else {
//qDebug() << "View:: No needed reshow from timer 1...";
}
});
@ -877,7 +880,10 @@ void View::setLayout(Layout::GenericLayout *layout)
if (m_layout && !inDelete() && !isVisible()) {
setVisible(true);
applyActivitiesToWindows();
//qDebug() << "View:: Enforce reshow from timer 2...";
emit activitiesChanged();
} else {
//qDebug() << "View:: No needed reshow from timer 2...";
}
});