[gnome-shell] grabHelper: Treat the current grabbed actor as a grabbed actor
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] grabHelper: Treat the current grabbed actor as a grabbed actor
- Date: Sat, 8 Dec 2012 00:56:34 +0000 (UTC)
commit 27ffad21480d49682d6278d11bda67a1fd296d14
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Nov 26 14:47:59 2012 -0500
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index 4104c8d..aacce43 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]