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

disable frame_extents for X11::ByPassWM()

--fix blur positioning for docks panels that
have chosen to ByPassWM() under X11 environment
This commit is contained in:
Michail Vourlakos 2021-10-22 20:41:50 +03:00
parent 5c2b24530b
commit c521112cea

View File

@ -605,12 +605,14 @@ void VisibilityManager::publishFrameExtents(bool forceUpdate)
qDebug() << " -> Frame Extents :: " << m_frameExtentsLocation << " __ " << " extents :: " << frameExtents;
if (!frameExtents.isNull() && !m_latteView->behaveAsPlasmaPanel()) {
bool bypasswm{m_latteView->byPassWM() && KWindowSystem::isPlatformX11()};
if (!frameExtents.isNull() && !m_latteView->behaveAsPlasmaPanel() && !bypasswm) {
//! When a view returns its frame extents to zero then that triggers a compositor
//! strange behavior that moves/hides the view totally and freezes entire Latte
//! this is why we have blocked that setting
m_wm->setFrameExtents(m_latteView, frameExtents);
} else if (m_latteView->behaveAsPlasmaPanel()) {
} else if (m_latteView->behaveAsPlasmaPanel() || bypasswm) {
QMargins panelExtents(0, 0, 0, 0);
m_wm->setFrameExtents(m_latteView, panelExtents);
emit frameExtentsCleared();