From dc125d6b2cff34c539b7a0c243b8cd754b99d657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Tue, 15 Oct 2019 20:20:58 +0200 Subject: [PATCH] free-resize: clamp window height to workarea bounds Allows to sloppily super+right-button-drag a window to maximized height --- tiling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index ab0712e..36e2693 100644 --- a/tiling.js +++ b/tiling.js @@ -2646,7 +2646,7 @@ function allocateDefault(column, availableHeight, selectedWindow) { if (shouldMaximizeSingleWindow(column[0])) { return [availableHeight]; } else { - return [column[0].get_frame_rect().height] + return [Math.min(availableHeight, column[0].get_frame_rect().height)]; } } else { // Distribute available height amongst non-selected windows in proportion to their existing height