From 6352abe75b9d4acb880399d507ad5a4733c880e0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Jul 2023 18:02:10 +0200 Subject: Fix {top,bottom}_end_x values for _NET_WM_STRUT_PARTIAL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/x.py b/src/x.py index 9b9e8d1..08515f9 100644 --- a/src/x.py +++ b/src/x.py @@ -148,8 +148,8 @@ def create_panel(width, height, left, ypos, panel_height, at_top): colormap = Xlib.X.CopyFromParent, override_redirect = get_override_redirect()) - top_ = lambda x, y, w, h : [0, 0, y + h, 0, 0, 0, 0, 0, x, x + w, 0, 0] - bottom_ = lambda x, y, w, h : [0, 0, 0, y + h, 0, 0, 0, 0, 0, 0, x, x + w] + top_ = lambda x, y, w, h : [0, 0, y + h, 0, 0, 0, 0, 0, x, x + w - 1, 0, 0] + bottom_ = lambda x, y, w, h : [0, 0, 0, y + h, 0, 0, 0, 0, 0, 0, x, x + w - 1] window.set_wm_name('xpybar') window.set_wm_icon_name('xpybar') -- cgit v1.2.3-70-g09d2