aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-07-21 18:02:10 +0200
committerMattias Andrée <maandree@kth.se>2023-07-21 18:02:10 +0200
commit6352abe75b9d4acb880399d507ad5a4733c880e0 (patch)
tree89b31c88230b0b32f0b218b24f0327233b29152a
parentm (diff)
downloadxpybar-6352abe75b9d4acb880399d507ad5a4733c880e0.tar.gz
xpybar-6352abe75b9d4acb880399d507ad5a4733c880e0.tar.bz2
xpybar-6352abe75b9d4acb880399d507ad5a4733c880e0.tar.xz
Fix {top,bottom}_end_x values for _NET_WM_STRUT_PARTIAL1.20.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/x.py4
1 files changed, 2 insertions, 2 deletions
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')