diff --git a/js/ui/windowAttentionHandler.js b/js/ui/windowAttentionHandler.js index d5e23d2f2..733103336 100644 --- a/js/ui/windowAttentionHandler.js +++ b/js/ui/windowAttentionHandler.js @@ -11,7 +11,8 @@ const WindowAttentionHandler = new Lang.Class({ _init : function() { this._tracker = Shell.WindowTracker.get_default(); - global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention)); + this._windowDemandsAttentionId = global.display.connect('window-demands-attention', + Lang.bind(this, this._onWindowDemandsAttention)); }, _getTitleAndBanner: function(app, window) {