@ -40,7 +40,7 @@ AbstractItem {
/ / f o r w a r d c l i c k e v e n t t o t h e a p p l e t
/ / f o r w a r d c l i c k e v e n t t o t h e a p p l e t
var appletItem = applet . compactRepresentationItem ? applet.compactRepresentationItem : applet . fullRepresentationItem
var appletItem = applet . compactRepresentationItem ? applet.compactRepresentationItem : applet . fullRepresentationItem
const mouseArea = findMouseArea ( appletItem )
const mouseArea = findMouseArea ( appletItem )
if ( mouseArea ) {
if ( mouseArea && mouse . button !== Qt . RightButton ) {
mouseArea . clicked ( mouse )
mouseArea . clicked ( mouse )
} else if ( mouse . button === Qt . LeftButton ) { / / f a l b a c k
} else if ( mouse . button === Qt . LeftButton ) { / / f a l b a c k
plasmoidContainer . activated ( null )
plasmoidContainer . activated ( null )
@ -51,6 +51,13 @@ AbstractItem {
/ / S N I h a s f e w p r o b l e m s , f o r e x a m p l e l e g a c y a p p l i c a t i o n s t h a t s t i l l u s e X E m b e d r e q u i r e m o u s e t o b e r e l e a s e d .
/ / S N I h a s f e w p r o b l e m s , f o r e x a m p l e l e g a c y a p p l i c a t i o n s t h a t s t i l l u s e X E m b e d r e q u i r e m o u s e t o b e r e l e a s e d .
if ( mouse . button === Qt . RightButton ) {
if ( mouse . button === Qt . RightButton ) {
plasmoidContainer . contextMenu ( mouse ) ;
plasmoidContainer . contextMenu ( mouse ) ;
} else {
const appletItem = applet . compactRepresentationItem ? applet.compactRepresentationItem : applet . fullRepresentationItem
const mouseArea = findMouseArea ( appletItem )
if ( mouseArea ) {
/ / H A C K Q M L o n l y s e e s t h e " m o u s e A r e a . p r e s s e d " p r o p e r t y , n o t t h e s i g n a l .
Plasmoid . nativeInterface . emitPressed ( mouseArea , mouse ) ;
}
}
}
}
}
onContextMenu: if ( applet ) {
onContextMenu: if ( applet ) {