From d3f75573de5d930dee887986a238ddbb821f1c9a Mon Sep 17 00:00:00 2001 From: Fabian Homborg <FHomborg@gmail.com> Date: Thu, 24 Oct 2013 10:52:58 +0200 Subject: [PATCH] Workaround kwin bug for clientArea We always seem to get the full area when we ask for a desktop that's not the first (0). --- contents/code/tile.js | 1 - contents/code/tiling.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contents/code/tile.js b/contents/code/tile.js index 47378c9..ec899cb 100644 --- a/contents/code/tile.js +++ b/contents/code/tile.js @@ -177,7 +177,6 @@ Tile.prototype.syncCustomProperties = function() { this.clients[0].tiling_tileIndex = this.tileIndex; this.clients[0].syncTabGroupFor("tiling_tileIndex", true); this.clients[0].syncTabGroupFor("tiling_floating", true); - this.clients[0].syncTabGroupFor("fullScreen", true); } catch(err) { print(err, "in Tile.syncCustomProperties"); } diff --git a/contents/code/tiling.js b/contents/code/tiling.js index a17eefb..d5afbd2 100644 --- a/contents/code/tiling.js +++ b/contents/code/tiling.js @@ -229,7 +229,8 @@ Tiling.prototype._updateAllTiles = function() { try { // Set the position/size of all tiles if (this.active) { - var rect = workspace.clientArea(KWin.PlacementArea, this.desktop, this.screen); + // FIXME: KWin hands us the wrong area if we ask for our real desktop + var rect = workspace.clientArea(KWin.PlacementArea, 0, this.screen); this.layout.onLayoutAreaChange(rect); for (var i = 0; i < this.layout.tiles.length; i++) { var newRect = this.layout.tiles[i].rectangle; -- GitLab