@ -317,18 +317,15 @@ Item{
/ / ! I n p u t M a s k
if ( updateIsEnabled ) {
var animated = ( animations . needBothAxis . count > 0 ) ;
if ( animated ) {
/ / ! c l e a r i n p u t m a s k
latteView . effects . inputMask = Qt . rect ( 0 , 0 , - 1 , - 1 ) ;
} else {
updateInputGeometry ( ) ;
}
updateInputGeometry ( ) ;
}
}
function updateInputGeometry ( ) {
/ / V i s i b i l i t y M a n a g e r . q m l t r i e s t o w o r k a r o u n d f a u l t y o n E n t e r e d ( ) s i g n a l s f r o m P a r a b o l i c M o u s e A r e a
/ / b y s p e c i f y i n g i n p u t T h i c k n e s s w h e n P a r a b o l i c E f f e c t i s a p p l i e d . ( i n p u t T h i c k n e s s - > a n i m a t e d s c e n a r i o )
var animated = ( animations . needBothAxis . count > 0 ) ;
if ( ! LatteCore . WindowSystem . compositingActive || latteView . behaveAsPlasmaPanel ) {
/ / ! c l e a r i n p u t m a s k
latteView . effects . inputMask = Qt . rect ( 0 , 0 , - 1 , - 1 ) ;
@ -339,9 +336,9 @@ Item{
if ( latteView . visibility . isHidden ) {
inputThickness = metrics . mask . thickness . hidden ;
} else if ( root . hasFloatingGapInputEventsDisabled ) {
inputThickness = metrics. totals . thickness ;
inputThickness = animated ? metrics . mask . thickness . zoomedForItems - metrics.margins.screenEdge : metrics. totals . thickness ;
} else {
inputThickness = metrics. mask . screenEdge + metrics . totals . thickness ;
inputThickness = animated ? metrics.mask.thickness.zoomedForItems : metrics. mask . screenEdge + metrics . totals . thickness ;
}
var subtractedScreenEdge = root . hasFloatingGapInputEventsDisabled && ! latteView . visibility . isHidden ? metrics.mask.screenEdge : 0 ;
@ -350,29 +347,37 @@ Item{
/ / ! u s e v i e w . l o c a l G e o m e t r y f o r l e n g t h p r o p e r t i e s
if ( plasmoid . location === PlasmaCore . Types . TopEdge ) {
inputGeometry . x = latteView . localGeometry . x ;
inputGeometry . y = subtractedScreenEdge ;
if ( ! animated ) {
inputGeometry . x = latteView . localGeometry . x ;
inputGeometry . width = latteView . localGeometry . width ;
}
inputGeometry . width = latteView . localGeometry . width ;
inputGeometry . height = inputThickness ;
inputGeometry . y = subtractedScreenEdge ;
inputGeometry . height = inputThickness ;
} else if ( plasmoid . location === PlasmaCore . Types . BottomEdge ) {
inputGeometry . x = latteView . localGeometry . x ;
inputGeometry . y = root . height - inputThickness - subtractedScreenEdge ;
if ( ! animated ) {
inputGeometry . x = latteView . localGeometry . x ;
inputGeometry . width = latteView . localGeometry . width ;
}
inputGeometry . width = latteView . localGeometry . width ;
inputGeometry . y = root . height - inputThickness - subtractedScreenEdge ;
inputGeometry . height = inputThickness ;
} else if ( plasmoid . location === PlasmaCore . Types . LeftEdge ) {
inputGeometry . x = subtractedScreenEdge ;
inputGeometry . y = latteView . localGeometry . y ;
if ( ! animated ) {
inputGeometry . y = latteView . localGeometry . y ;
inputGeometry . height = latteView . localGeometry . height ;
}
inputGeometry . x = subtractedScreenEdge ;
inputGeometry . width = inputThickness ;
inputGeometry . height = latteView . localGeometry . height ;
} else if ( plasmoid . location === PlasmaCore . Types . RightEdge ) {
inputGeometry . x = root . width - inputThickness - subtractedScreenEdge ;
inputGeometry . y = latteView . localGeometry . y ;
if ( ! animated ) {
inputGeometry . y = latteView . localGeometry . y ;
inputGeometry . height = latteView . localGeometry . height ;
}
inputGeometry . x = root . width - inputThickness - subtractedScreenEdge ;
inputGeometry . width = inputThickness ;
inputGeometry . height = latteView . localGeometry . height ;
}
/ / s e t t h e b o u n d a r i e s f o r l a t t e V i e w l o c a l g e o m e t r y