@ -115,6 +115,7 @@ Item {
|| ( ( index === layoutsContainer . mainLayout . beginIndex + layoutsContainer . mainLayout . count - 2 ) && ( layoutsContainer . mainLayout . count > 2 ) )
|| ( ( index === layoutsContainer . endLayout . beginIndex + layoutsContainer . endLayout . count - 1 ) && ( layoutsContainer . endLayout . count > 1 ) ) )
readonly property bool acceptMouseEvents: applet && ! isLattePlasmoid && ! originalAppletBehavior && ! appletItem . isSeparator && ! communicator . parabolicEffectLocked
readonly property bool originalAppletBehavior: ( ( root . zoomFactor === 1 || ! canBeHovered ) && ! root . titleTooltips ) || lockZoom
readonly property bool isSquare: communicator . overlayLatteIconIsActive
@ -153,7 +154,7 @@ Item {
property Item communicatorAlias: communicator
property Item wrapperAlias: wrapper
property bool containsMouse: appletMouseArea . containsMouse || appletMouseAreaBottom . containsMouse
property bool containsMouse: appletMouseArea . containsMouse /*|| appletMouseAreaBottom.containsMouse*/
property bool pressed: viewSignalsConnector . pressed || clickedAnimation . running
/ * o n C o m p u t e H e i g h t C h a n g e d : {
@ -173,8 +174,18 @@ Item {
/ / u n f o r t u n a t e l y f o r o t h e r a p p l e t s t h e r e i s n o o t h e r w a y t o a c t i v a t e t h e m y e t
/ / f o r e x a m p l e t h e i c o n - o n l y a p p l e t s
var choords = mapToItem ( appletItem . appletWrapper , mouse . x , mouse . y ) ;
if ( choords . x < 0 || choords . y < 0 || choords . x >= appletItem . appletWrapper . width || choords . y >= appletItem . appletWrapper . height ) {
var wrapperContainsMouse = choords . x >= 0 && choords . y >= 0 && choords . x < appletItem . appletWrapper . width && choords . y < appletItem . appletWrapper . height ;
var appletItemContainsMouse = mouse . x >= 0 && mouse . y >= 0 && mouse . x < width && mouse . y < height ;
/ / c o n s o l e . l o g ( " A P P L E T : : " + m o u s e . x + " _ " + m o u s e . y ) ;
/ / c o n s o l e . l o g ( " W R A P P E R : : " + c h o o r d s . x + " _ " + c h o o r d s . y ) ;
if ( appletItemContainsMouse && ! wrapperContainsMouse ) {
/ / c o n s o l e . l o g ( " P A S S E D " ) ;
latteView . toggleAppletExpanded ( applet . id ) ;
} else {
/ / c o n s o l e . l o g ( " R E J E C T E D " ) ;
}
}
@ -477,7 +488,9 @@ Item {
if ( appletItem . containsPos ( pos ) ) {
viewSignalsConnector . pressed = true ;
var local = appletItem . mapFromItem ( root , pos . x , pos . y ) ;
appletItem . mousePressed ( local . x , local . y , button ) ;
appletItem . activateAppletForNeutralAreas ( local ) ;
}
}
@ -530,6 +543,9 @@ Item {
border.color: "green"
border.width: 1
} * /
/ * D E P R E C A T E D i n f a v o r o f V I E W : : M o u s e S i g n a l s T r a c k i n g
MouseArea {
id: appletMouseAreaBottom
anchors.fill: parent
@ -544,7 +560,7 @@ Item {
onReleased: {
mouse . accepted = false ;
}
}
} * /
/ / ! M a i n A p p l e t S h o w n A r e a
Flow {
@ -694,20 +710,16 @@ Item {
anchors.fill: parent
enabled: visible
hoverEnabled: latteApplet ? false : true
/ / p r o p a g a t e C o m p o s e d E v e n t s : t r u e
propagateComposedEvents: tru e
/ / ! a w a y m u s t b e f o u n d i n o r d e r f o r t h i s b e e n a b l e d
/ / ! o n l y t o s u p p o r t s p r i n g l o a d i n g f o r p l a s m a 5 . 1 0
/ / ! a l s o o n t h i s i s b a s e d t h e t o o l t i p s b e h a v i o r b y e n a b l i n g i t
/ / ! p l a s m a t o o l t i p s a r e d i s a b l e d
visible: a pplet && ! isLattePlasmoid && ! originalAppletBehavior && ! appletItem . isSeparator && ! communicator . parabolicEffectLocked
visible: a cceptMouseEvents
property bool blockWheel: false
onClicked: {
mouse . accepted = false ;
}
onEntered: {
if ( containsMouse && ! originalAppletBehavior && ! communicator . parabolicEffectLocked && appletItem . canBeHovered ) {
root . stopCheckRestoreZoomTimer ( ) ;
@ -808,18 +820,6 @@ Item {
mouse . accepted = false ;
}
onPressed: {
appletItem . activateAppletForNeutralAreas ( mouse ) ;
/ / ! t h i s i s n e e d e d f o r s o m e a p p l e t s i s o r d e r t o b e a c t i v a t e d / d e a c t i v a t e d c o r r e c t l y
/ / ! s u c h c a s e i s t h e " A p p l i c a t i o n M e n u " . ( b u g # 9 2 8 )
mouse . accepted = false ;
}
onReleased: {
mouse . accepted = false ;
}
onWheel: {
if ( isSeparator || ! root . mouseWheelActions || blockWheel
|| ( root . latteViewIsHidden || root . inSlidingIn || root . inSlidingOut ) ) {