workspace: Refactor code a bit
https://bugzilla.gnome.org/show_bug.cgi?id=582650
This commit is contained in:
parent
baf08dd688
commit
6851c5443a
@ -986,15 +986,10 @@ const Workspace = new Lang.Class({
|
|||||||
if (this._reservedSlot == clone)
|
if (this._reservedSlot == clone)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (clone && this.containsMetaWindow(clone.metaWindow)) {
|
if (clone && this.containsMetaWindow(clone.metaWindow))
|
||||||
this._reservedSlot = null;
|
clone = null;
|
||||||
this.positionWindows(WindowPositionFlags.ANIMATE);
|
|
||||||
return;
|
this._reservedSlot = clone;
|
||||||
}
|
|
||||||
if (clone)
|
|
||||||
this._reservedSlot = clone;
|
|
||||||
else
|
|
||||||
this._reservedSlot = null;
|
|
||||||
this.positionWindows(WindowPositionFlags.ANIMATE);
|
this.positionWindows(WindowPositionFlags.ANIMATE);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user