From e66706c72beee6963d3a59b6e923879ef97877e5 Mon Sep 17 00:00:00 2001 From: Fabian Homborg <FHomborg@gmail.com> Date: Sat, 17 Aug 2013 18:54:49 +0200 Subject: [PATCH] Fix float toggling sometimes not working. This removes any remains of the idea of a "floating tile". We're not a window manager, we just need to care about tiling windows. --- contents/code/tile.js | 5 ----- contents/code/tiling.js | 2 +- contents/code/tilingmanager.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/contents/code/tile.js b/contents/code/tile.js index 390f3fb..285bbcc 100644 --- a/contents/code/tile.js +++ b/contents/code/tile.js @@ -81,10 +81,6 @@ function Tile(firstClient, tileIndex) { * Index of this tile in the TileList to which the tile belongs. */ this.tileIndex = tileIndex; - /** - * True if this tile has been marked as floating by the user. - */ - this.floating = false; /** * True if this tile has to be floating because of client properties. */ @@ -161,7 +157,6 @@ Tile.prototype.getActiveClient = function() { */ Tile.prototype.syncCustomProperties = function() { this.clients[0].tiling_tileIndex = this.tileIndex; - this.clients[0].tiling_floating = this.floating; this.clients[0].syncTabGroupFor("tiling_tileIndex", true); this.clients[0].syncTabGroupFor("tiling_floating", true); }; diff --git a/contents/code/tiling.js b/contents/code/tiling.js index f611540..b3e3df0 100644 --- a/contents/code/tiling.js +++ b/contents/code/tiling.js @@ -165,7 +165,7 @@ Tiling.prototype.getTiles = function() { } Tiling.prototype.getAdjacentTile = function(from, direction, directOnly) { - if (from.floating || from.forcedFloating) { + if (from.forcedFloating) { // TODO print("TODO: getAdjacentTile() (floating tile)"); } else { diff --git a/contents/code/tilingmanager.js b/contents/code/tilingmanager.js index 68dd5fa..528e1f5 100644 --- a/contents/code/tilingmanager.js +++ b/contents/code/tilingmanager.js @@ -491,7 +491,7 @@ TilingManager.prototype._moveTile = function(direction) { return; } var activeTile = this.tiles.getTile(client); - if (activeTile == null || activeTile.floating + if (activeTile == null || activeTile.forcedFloating) { print("Tile is floating"); return; -- GitLab