From 809cbf58c6e396d4d5d34da840fcaed56ff01b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 15 Sep 2012 16:45:00 +0200 Subject: [PATCH] grabHelper: Ungrab the entire stack on "outside clicks" Currently clicks outside the grabbed actors are handled the same as the user pressing Escape - a single actor is popped from the grab stack. However according to the design, outside clicks should release all grabs. https://bugzilla.gnome.org/show_bug.cgi?id=682243 --- js/ui/grabHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 6c7511fdf..9249828c6 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -330,7 +330,7 @@ const GrabHelper = new Lang.Class({ // which should be a release event. if (press) this._ignoreRelease = true; - this.ungrab(); + this.ungrab({ actor: this._grabStack[0].actor }); } return this._modalCount > 0;