xrandr-indicator: stop processing RandR events when disabled
It's hard to tell people to disconnect their signals, when we are the first to forget it...
This commit is contained in:
@@ -64,6 +64,13 @@ const Indicator = new Lang.Class({
|
||||
this._screen.connect('changed', Lang.bind(this, this._randrEvent));
|
||||
},
|
||||
|
||||
destroy: function() [
|
||||
if (this._screen)
|
||||
this._screen.run_dispose();
|
||||
|
||||
this.parent();
|
||||
},
|
||||
|
||||
_randrEvent: function() {
|
||||
this.menu.removeAll();
|
||||
this._createMenu();
|
||||
|
||||
Reference in New Issue
Block a user