From aa83fc7a1b051c30957c6d8f1171e6f7d3cc3985 Mon Sep 17 00:00:00 2001 From: Fabian Homborg <FHomborg@gmail.com> Date: Thu, 5 Dec 2013 16:29:43 +0100 Subject: [PATCH] Remove unnecessary focus handling when removing clients This isn't needed with windowClosed, and causes a crash when closing a fullscreen window that used to be tiled (and is therefore connected to the signal) --- contents/code/tilelist.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/contents/code/tilelist.js b/contents/code/tilelist.js index 645a174..a95f11f 100644 --- a/contents/code/tilelist.js +++ b/contents/code/tilelist.js @@ -222,13 +222,6 @@ TileList.prototype._onClientAdded = function(client) { }; TileList.prototype._onClientRemoved = function(client) { - // HACK: Set this client to active even if it floats, as it can only be set floating when it is active (with FFM) - var cactive = false; - if (options.focusPolicy < 2) { - if (workspace.activeClient == client) { - cactive = true; - } - } try { // Unset keepBelow because we set it when tiling client.keepBelow = false; @@ -249,9 +242,6 @@ TileList.prototype._onClientRemoved = function(client) { //client.tiling_tileIndex = - 1; if (client.tiling_floating == true) { client.noBorder = false; - if (cactive == true) { - workspace.activeClient = client; - } } } catch(err) { print(err, "in onClientRemoved with", client.resourceClass.toString()); -- GitLab