[gnome-shell/gnome-3-8] dash: Make sure _clearDragPlaceholder() resets _dragPlaceholderPos
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] dash: Make sure _clearDragPlaceholder() resets _dragPlaceholderPos
- Date: Wed, 5 Jun 2013 13:33:55 +0000 (UTC)
commit 5216b77600b7af1f06c0b702472e20c159377d4a
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 0de00a2..64aed3f 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -799,8 +799,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]