From b03f7564e3baaf21d7dd54fdbd925d821df12dee 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. --- js/ui/grabHelper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 7e86c8439..a35ceb400 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;