@ -34,6 +34,8 @@ import "../code/activitiesTools.js" as ActivitiesTools
PlasmaComponents . ContextMenu {
id: menu
property bool changingLayout: false
property QtObject mpris2Source
property QtObject backend
@ -264,13 +266,15 @@ PlasmaComponents.ContextMenu {
Component.onDestruction: {
windowsPreviewDlg . contextMenu = false ;
root . contextMenu = null ;
backend . ungrabMouse ( visualParent ) ;
root . signalActionsBlockHiding ( - 1 ) ;
/ / r o o t . s i g n a l D r a g g i n g S t a t e ( f a l s e ) ;
root . disableRestoreZoom = false ;
checkListHovered . startDuration ( 100 ) ;
if ( ! changingLayout ) {
windowsPreviewDlg . contextMenu = false ;
root . contextMenu = null ;
backend . ungrabMouse ( visualParent ) ;
root . signalActionsBlockHiding ( - 1 ) ;
/ / r o o t . s i g n a l D r a g g i n g S t a t e ( f a l s e ) ;
root . disableRestoreZoom = false ;
checkListHovered . startDuration ( 100 ) ;
}
}
/ / / S u b I t e m s
@ -800,6 +804,7 @@ PlasmaComponents.ContextMenu {
onClicked: {
/ / f i x a c r a s h t h a t w h e n g o i n g t o A l t e r n a t i v e S e s s i o n t h r o u g h C o n t e x t M e n u ,
/ / a n i m a t i o n s a r e p l a y e d d u r i n g t h e d e s t r u c t i o n a n d b e c a u s e o f t h a t L a t t e . I c o n I t e m i s c r a s h i n g
menu . changingLayout = true ;
root . disableRestoreZoom = false ;
root . clearZoom ( ) ;
if ( latteDock )