1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-02 21:47:22 +03:00

panels:fix switch to explicit screens and back

--some improvements introduced to 0.10.7 broke the
screen switching codepath for panels. With this
fix users can again move panels around for their
screens

BUG:448569
FIXED-IN:0.10.8
This commit is contained in:
Michail Vourlakos 2022-01-16 21:57:17 +02:00
parent 60095bba3b
commit 84fe31c318

View File

@ -974,10 +974,16 @@ void Positioner::initSignalingForLocationChangeSliding()
//! SCREEN
connect(m_view, &QQuickView::screenChanged, this, [&]() {
if (!m_view || !m_nextScreen) {
return;
}
//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()));
if (m_nextScreen
&& m_nextScreen == m_view->screen()
&& m_nextScreen->geometry().contains(m_view->geometry().center())) {
&& confirmedgeometry) {
bool isrelocationlastevent = isLastHidingRelocationEvent();
m_nextScreen = nullptr;
m_nextScreenName = "";