From 27ffad21480d49682d6278d11bda67a1fd296d14 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 26 Nov 2012 14:47:59 -0500 Subject: [PATCH] grabHelper: Treat the current grabbed actor as a grabbed actor This should be obvious, but I guess it wasn't necessary for the message tray case. https://bugzilla.gnome.org/show_bug.cgi?id=689109 --- js/ui/grabHelper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 4104c8d56..aacce4334 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -77,9 +77,12 @@ const GrabHelper = new Lang.Class({ }, _isWithinGrabbedActor: function(actor) { + let currentActor = this.currentGrab.actor; while (actor) { if (this._actors.indexOf(actor) != -1) return true; + if (actor == currentActor) + return true; actor = actor.get_parent(); } return false;