mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-03 09:17:50 +03:00
wayland:views now switch properly between screens
This commit is contained in:
parent
b1d57051c2
commit
be9799b342
@ -978,9 +978,11 @@ void Positioner::initSignalingForLocationChangeSliding()
|
||||
if (!m_view || !m_nextScreen) {
|
||||
return;
|
||||
}
|
||||
//if panels are not excluded from confirmed geometry check then they are stuck in sliding out end
|
||||
|
||||
//[1] if panels are not excluded from confirmed geometry check then they are stuck in sliding out end
|
||||
//and they do not switch to new screen geometry
|
||||
bool confirmedgeometry = m_view->behaveAsPlasmaPanel() || (!m_view->behaveAsPlasmaPanel() && m_nextScreen->geometry().contains(m_view->geometry().center()));
|
||||
//[2] under wayland view geometry may be delayed to be updated even though the screen has been updated correctly
|
||||
bool confirmedgeometry = KWindowSystem::isPlatformWayland() || m_view->behaveAsPlasmaPanel() || (!m_view->behaveAsPlasmaPanel() && m_nextScreen->geometry().contains(m_view->geometry().center()));
|
||||
|
||||
if (m_nextScreen
|
||||
&& m_nextScreen == m_view->screen()
|
||||
|
Loading…
Reference in New Issue
Block a user