fix top masking during editMode

--improve also identifying when subtracting
edit mode mask is needed
pull/5/head
Michail Vourlakos 6 years ago
parent c3b3788fec
commit 0816e2b8aa

@ -203,7 +203,7 @@ QRegion Effects::subtrackedMaskFromWindow(QRegion initialRegion, QQuickView *win
//! we need to subtrack the mask areas that overlap with underlying window
switch (m_view->location()) {
case Plasma::Types::TopEdge:
windowMask.setTopLeft(QPoint(window->x() - m_view->x(), m_mask.y() - m_editShadow));
windowMask.setTopLeft(QPoint(window->x() - m_view->x(), m_mask.y() + m_mask.height() - m_editShadow));
windowMask.setSize(QSize(window->width(), m_editShadow));
break;

@ -197,7 +197,7 @@ Item{
value: {
if (Latte.WindowSystem.compositingActive
&& editModeVisual.editAnimationEnded
&& !root.isHovered) {
&& (!root.isHovered || root.zoomFactor===1) ) {
return true;
} else {
return false;

Loading…
Cancel
Save