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.
This commit is contained in:
parent
7077e57d53
commit
8d78c3a2ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user