File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -577,8 +577,12 @@ const MenuItemFactory = {
577
577
} ,
578
578
579
579
_onActivate ( _item , event ) {
580
+ const timestamp = event . get_time ( ) ;
581
+ if ( timestamp && this . _dbusClient . indicator )
582
+ this . _dbusClient . indicator . provideActivationToken ( timestamp ) ;
583
+
580
584
this . _dbusItem . handleEvent ( 'clicked' , GLib . Variant . new ( 'i' , 0 ) ,
581
- event . get_time ( ) ) ;
585
+ timestamp ) ;
582
586
} ,
583
587
584
588
_onPropertyChanged ( dbusItem , prop , _value ) {
@@ -728,12 +732,13 @@ const MenuUtils = {
728
732
*/
729
733
var Client = class AppIndicatorsClient {
730
734
731
- constructor ( busName , path ) {
735
+ constructor ( busName , path , indicator ) {
732
736
this . _busName = busName ;
733
737
this . _busPath = path ;
734
738
this . _client = new DBusClient ( busName , path ) ;
735
739
this . _rootMenu = null ; // the shell menu
736
740
this . _rootItem = null ; // the DbusMenuItem for the root
741
+ this . indicator = indicator ;
737
742
}
738
743
739
744
get isReady ( ) {
@@ -825,6 +830,7 @@ var Client = class AppIndicatorsClient {
825
830
this . _client = null ;
826
831
this . _rootItem = null ;
827
832
this . _rootMenu = null ;
833
+ this . indicator = null ;
828
834
}
829
835
} ;
830
836
Signals . addSignalMethods ( Client . prototype ) ;
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class AppIndicatorsIndicatorStatusIcon extends BaseStatusIcon {
265
265
266
266
if ( this . _indicator . menuPath ) {
267
267
this . _menuClient = new DBusMenu . Client ( this . _indicator . busName ,
268
- this . _indicator . menuPath ) ;
268
+ this . _indicator . menuPath , this . _indicator ) ;
269
269
this . _menuClient . attachToMenu ( this . menu ) ;
270
270
}
271
271
}
You can’t perform that action at this time.
0 commit comments