overview: Always return a value in _onDragMotion()

Drag monitor functions are supposed to return a value, but
_onDragMotion() does not always do so. Add the missing return
value and remove unnecessary else.
This commit is contained in:
Florian Müllner 2011-01-20 16:46:55 +01:00
parent bdeb20f7c9
commit df3560143d

View File

@ -207,8 +207,8 @@ Overview.prototype = {
if (targetIsWindow &&
dragEvent.targetActor._delegate.metaWindow == this._lastHoveredWindow)
return;
else
return DND.DragMotionResult.CONTINUE;
this._lastHoveredWindow = null;
if (this._windowSwitchTimeoutId != 0) {