[gnome-shell/gbsneto/dnd-fixes: 2/3] dnd: Don't mix callback argument and object field usage
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/dnd-fixes: 2/3] dnd: Don't mix callback argument and object field usage
- Date: Thu, 26 Sep 2019 02:27:15 +0000 (UTC)
commit 98fb6ee7d6539e7e2eec6901249bc77eb6e54315
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Nov 27 12:21:57 2018 -0200
dnd: Don't mix callback argument and object field usage
This will be important for the next commit, since _dragComplete()
changes the value of this._dragActor and we need to keep a valid
reference to it.
https://phabricator.endlessm.com/T24387
js/ui/dnd.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 927f54d971..d9f45a3308 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -704,8 +704,8 @@ var _Draggable = class _Draggable {
_onAnimationComplete(dragActor, eventTime) {
if (this._dragOrigParent) {
- Main.uiGroup.remove_child(this._dragActor);
- this._dragOrigParent.add_actor(this._dragActor);
+ Main.uiGroup.remove_child(dragActor);
+ this._dragOrigParent.add_actor(dragActor);
dragActor.set_scale(this._dragOrigScale, this._dragOrigScale);
dragActor.set_position(this._dragOrigX, this._dragOrigY);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]