From bee9ea917365cf37803a0f14768d2e6575d40242 Mon Sep 17 00:00:00 2001 From: Fabian Homborg <FHomborg@gmail.com> Date: Sat, 17 Aug 2013 21:46:21 +0200 Subject: [PATCH] Don't reset tileIndex on initial remove - _onClientRemoved already does that. --- contents/code/tilingmanager.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/contents/code/tilingmanager.js b/contents/code/tilingmanager.js index 528e1f5..36e0c6c 100644 --- a/contents/code/tilingmanager.js +++ b/contents/code/tilingmanager.js @@ -115,14 +115,17 @@ function TilingManager() { var existingClients = workspace.clientList(); existingClients.forEach(function(client) { self.tiles._onClientRemoved(client); - client.tiling_tileIndex = null; - client.tiling_floating = null; + // Don't reset floating so we don't lose the value over restarts + //client.tiling_floating = null; }); - // TODO: Properly tile on startup + // Create the initial list of tiles existingClients.forEach(function(client) { self.tiles.addClient(client); }); + + // TODO: Properly tile on startup + // Register global callbacks workspace.numberDesktopsChanged.connect(function() { self._onNumberDesktopsChanged(); -- GitLab