[gnome-shell] XDND: Always update the timestamp on motion
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] XDND: Always update the timestamp on motion
- Date: Thu, 24 Feb 2011 10:47:21 +0000 (UTC)
commit 8d78c3a2abe16352db50f04cc22d6f0e75128703
Author: Adel Gadllah <adel gadllah gmail com>
Date: Thu Feb 24 11:25:29 2011 +0100
XDND: Always update the timestamp on motion
The xdnd timestamp gets updated on every xdnd-position event,
so while waiting for the window timeout to fire we need to make sure we
update the timestamp when getting on motion to activate the window
with the correct timestamp.
js/ui/overview.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index fd2266b..fbe8c3e 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -231,6 +231,8 @@ Overview.prototype = {
dragEvent.targetActor._delegate &&
dragEvent.targetActor._delegate.metaWindow;
+ this._windowSwitchTimestamp = global.get_current_time();
+
if (targetIsWindow &&
dragEvent.targetActor._delegate.metaWindow == this._lastHoveredWindow)
return DND.DragMotionResult.CONTINUE;
@@ -245,7 +247,6 @@ Overview.prototype = {
if (targetIsWindow) {
this._lastHoveredWindow = dragEvent.targetActor._delegate.metaWindow;
- this._windowSwitchTimestamp = global.get_current_time();
this._windowSwitchTimeoutId = Mainloop.timeout_add(DND_WINDOW_SWITCH_TIMEOUT,
Lang.bind(this, function() {
this._needsFakePointerEvent = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]