aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-04-14 17:28:04 +0200
committerMattias Andrée <m@maandree.se>2026-04-14 17:28:04 +0200
commite34f85e6d4a8c88a796b5c096d483422c9a80e40 (patch)
tree2bd805d564f243c654557e82a936e89ad14f8394
parentFix dock-to-bottom and enable docking to the left or right (diff)
downloadxpybar-1.21.1.tar.gz
xpybar-1.21.1.tar.bz2
xpybar-1.21.1.tar.xz
Fix panel clearing functionsHEAD1.21.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
-rwxr-xr-xsrc/__main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py
index c2c8216..d95d27c 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -462,7 +462,7 @@ class Bar:
@param height:int The height of the rectangle
'''
self.change_colour(self.background)
- self.window.fill_rectangle(self.gc, 0, 0, self.width, self.panel_height)
+ self.window.fill_rectangle(self.gc, x, y, width, height)
self.change_colour(self.foreground)
self.change_font(self.font)
@@ -470,7 +470,7 @@ class Bar:
'''
Fill the panel with its background colour and reset the colour and font
'''
- self.clear_rectangle(0, 0, self.width, self.panel_height)
+ self.clear_rectangle(0, 0, self.panel_width, self.panel_height)
def invalidate(self):
'''