diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 0c0e190d5..058524ae8 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -232,7 +232,7 @@ const GrabHelper = new Lang.Class({ this._keyFocusNotifyId = 0; } - if (!this._focusWindowChanged > 0) { + if (this._focusWindowChangedId > 0) { let metaDisplay = global.screen.get_display(); metaDisplay.disconnect(this._focusWindowChangedId); this._focusWindowChangedId = 0;