From ef7b74a10411a82d26abae05c66c78e6477e0135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 15 Sep 2012 19:14:52 +0200 Subject: [PATCH] grabHelper: Remove support for untracked grabs https://bugzilla.gnome.org/show_bug.cgi?id=682243 --- js/ui/grabHelper.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 9249828c6..0387b80e7 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -85,11 +85,7 @@ const GrabHelper = new Lang.Class({ }, get currentGrab() { - let idx = this._grabStack.length - 1; - while (idx >= 0 && this._grabStack[idx].untracked) - idx--; - - return this._grabStack[idx] || {}; + return this._grabStack[this._grabStack.length - 1] || {}; }, _findStackIndex: function(actor) { @@ -138,14 +134,9 @@ const GrabHelper = new Lang.Class({ // input mode to %Shell.StageInputMode.FOCUSED, and ungrab() will // revert it back, and re-focus the previously-focused window (if // another window hasn't been explicitly focused before then). - // - // If @params contains { untracked: true }, then it will be skipped - // when the grab helper ungrabs for you, or when calculating - // currentGrab. grab: function(params) { params = Params.parse(params, { actor: null, modal: false, - untracked: false, grabFocus: false, onUngrab: null });