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)
|
||||
return;
|
||||
|
||||
if (clone && this.containsMetaWindow(clone.metaWindow)) {
|
||||
this._reservedSlot = null;
|
||||
this.positionWindows(WindowPositionFlags.ANIMATE);
|
||||
return;
|
||||
}
|
||||
if (clone)
|
||||
if (clone && this.containsMetaWindow(clone.metaWindow))
|
||||
clone = null;
|
||||
|
||||
this._reservedSlot = clone;
|
||||
else
|
||||
this._reservedSlot = null;
|
||||
this.positionWindows(WindowPositionFlags.ANIMATE);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user