[gnome-shell] dash: Make sure _clearDragPlaceholder() resets _dragPlaceholderPos



commit 4b95be6a95cbbb61ad4dc2d25a6695e44c2c8b73
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri May 31 17:47:48 2013 +0200

    dash: Make sure _clearDragPlaceholder() resets _dragPlaceholderPos
    
    The function currently only resets the placeholder position if
    there is a placeholder; this is not necessarily true, as the
    placeholder may be reset outside _clearDragPlaceholder().
    If this happens, the placeholder will temporarily stop working
    for the "old" position (and permanently if it's the only position).
    Just reset the position unconditionally.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684618

 js/ui/dash.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index e29aff4..d6fd14c 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -793,8 +793,8 @@ const Dash = new Lang.Class({
         if (this._dragPlaceholder) {
             this._dragPlaceholder.animateOutAndDestroy();
             this._dragPlaceholder = null;
-            this._dragPlaceholderPos = -1;
         }
+        this._dragPlaceholderPos = -1;
     },
 
     handleDragOver : function(source, actor, x, y, time) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]