From 8a3bf62c9bca178222fbf08f080ac88d672fb26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 24 Jun 2018 19:01:32 +0200 Subject: [PATCH] Constrain selection highlight to the bottom of the top bar --- tiling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 1661bb4..aa4f7e0 100644 --- a/tiling.js +++ b/tiling.js @@ -1018,7 +1018,7 @@ function updateSelection(space, noAnimate) { let protrusion = Math.round(prefs.window_gap/2); Tweener.addTween(space.selection, {x: frame.x - protrusion, - y: frame.y - protrusion, + y: Math.max(frame.y, panelBox.height + prefs.vertical_margin) - protrusion, width: frame.width + prefs.window_gap, height: frame.height + prefs.window_gap, time: noAnimate ? 0 : 0.25,