mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
fix for calculating panel reqion in !compositing
the mask region wasnt calculated correctly in some cases after location changes. I think it might be a plasma upstream bug/change but either way this patch fixes it.
This commit is contained in:
parent
1678ad7adb
commit
b108409a4f
@ -1055,7 +1055,9 @@ void DockView::setMaskArea(QRect area)
|
||||
//! this is used when compositing is disabled and provides
|
||||
//! the correct way for the mask to be painted in order for
|
||||
//! rounded corners to be shown correctly
|
||||
if (!m_background) {
|
||||
//! the enabledBorders check was added because there was cases
|
||||
//! that the mask region wasnt calculated correctly after location changes
|
||||
if (!m_background || m_background->enabledBorders() != enabledBorders()) {
|
||||
m_background = new Plasma::FrameSvg(this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user