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:
parent
bdeb20f7c9
commit
df3560143d
@ -207,9 +207,9 @@ Overview.prototype = {
|
|||||||
|
|
||||||
if (targetIsWindow &&
|
if (targetIsWindow &&
|
||||||
dragEvent.targetActor._delegate.metaWindow == this._lastHoveredWindow)
|
dragEvent.targetActor._delegate.metaWindow == this._lastHoveredWindow)
|
||||||
return;
|
return DND.DragMotionResult.CONTINUE;
|
||||||
else
|
|
||||||
this._lastHoveredWindow = null;
|
this._lastHoveredWindow = null;
|
||||||
|
|
||||||
if (this._windowSwitchTimeoutId != 0) {
|
if (this._windowSwitchTimeoutId != 0) {
|
||||||
Mainloop.source_remove(this._windowSwitchTimeoutId);
|
Mainloop.source_remove(this._windowSwitchTimeoutId);
|
||||||
|
Loading…
Reference in New Issue
Block a user