More invalid source fixes

https://bugzilla.gnome.org/show_bug.cgi?id=711732
This commit is contained in:
Florian Müllner
2013-11-08 04:48:51 +01:00
parent 3991d2729d
commit 554d5aeb7c
6 changed files with 9 additions and 0 deletions

View File

@ -363,11 +363,13 @@ const Overview = new Lang.Class({
this._lastHoveredWindow = dragEvent.targetActor._delegate.metaWindow;
this._windowSwitchTimeoutId = Mainloop.timeout_add(DND_WINDOW_SWITCH_TIMEOUT,
Lang.bind(this, function() {
this._windowSwitchTimeoutId = 0;
this._needsFakePointerEvent = true;
Main.activateWindow(dragEvent.targetActor._delegate.metaWindow,
this._windowSwitchTimestamp);
this.hide();
this._lastHoveredWindow = null;
return false;
}));
}