[gnome-shell] dnd: Don't try to remove an invalid idle source
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dnd: Don't try to remove an invalid idle source
- Date: Wed, 6 Nov 2013 17:37:06 +0000 (UTC)
commit 735f589b1cfe374b43d54fe1b807d37b73d3c772
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Nov 6 10:40:29 2013 +0100
dnd: Don't try to remove an invalid idle source
As the handler returns false, the corresponding source is removed
automatically and its id invalidated. Reset the id to 0 to reflect
this, otherwise newer versions of GLib will print a warning when
we later try to remove it explicitly.
https://bugzilla.gnome.org/show_bug.cgi?id=711555
js/ui/dnd.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 54193ad..8172ac5 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -346,6 +346,7 @@ const _Draggable = new Lang.Class({
},
_updateDragHover : function () {
+ this._updateHoverId = 0;
let target = this._dragActor.get_stage().get_actor_at_pos(Clutter.PickMode.ALL,
this._dragX, this._dragY);
let dragEvent = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]