[gnome-shell/wip/rewindow: 17/20] workspace: Refactor code a bit
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rewindow: 17/20] workspace: Refactor code a bit
- Date: Wed, 22 Aug 2012 03:35:23 +0000 (UTC)
commit 4b953f23f9b7beb74200ccdd47b765bf7bbdc555
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Aug 8 18:42:13 2012 -0300
workspace: Refactor code a bit
https://bugzilla.gnome.org/show_bug.cgi?id=582650
js/ui/workspace.js | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index fa4aa7a..c23c865 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -989,16 +989,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)
- this._reservedSlot = clone;
- else
- this._reservedSlot = null;
+ if (clone && this.containsMetaWindow(clone.metaWindow))
+ clone = null;
+ this._reservedSlot = clone;
this._currentLayout = null;
this.positionWindows(WindowPositionFlags.ANIMATE);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]