mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-26 02:04:12 +03:00
set hidden ghost window mask to minimum
This commit is contained in:
parent
7b77a71980
commit
94fa4177ac
@ -208,19 +208,7 @@ bool ScreenEdgeGhostWindow::event(QEvent *e)
|
||||
|
||||
void ScreenEdgeGhostWindow::hideWithMask()
|
||||
{
|
||||
QRect maskGeometry;
|
||||
|
||||
if (m_dockView->formFactor() == Plasma::Types::Horizontal) {
|
||||
maskGeometry.setX(m_dockView->absGeometry().x());
|
||||
maskGeometry.setY(m_dockView->absGeometry().bottom() + 1);
|
||||
maskGeometry.setWidth(m_dockView->absGeometry().width());
|
||||
maskGeometry.setHeight(1);
|
||||
} else {
|
||||
maskGeometry.setX(m_dockView->absGeometry().right() + 1);
|
||||
maskGeometry.setY(m_dockView->absGeometry().y());
|
||||
maskGeometry.setWidth(1);
|
||||
maskGeometry.setHeight(m_dockView->absGeometry().height());
|
||||
}
|
||||
QRect maskGeometry{0, 0, 1, 1};
|
||||
|
||||
setMask(maskGeometry);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user