diff options
| author | Mattias Andrée <m@maandree.se> | 2026-04-14 17:28:04 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-04-14 17:28:04 +0200 |
| commit | e34f85e6d4a8c88a796b5c096d483422c9a80e40 (patch) | |
| tree | 2bd805d564f243c654557e82a936e89ad14f8394 | |
| parent | Fix dock-to-bottom and enable docking to the left or right (diff) | |
| download | xpybar-1.21.1.tar.gz xpybar-1.21.1.tar.bz2 xpybar-1.21.1.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
| -rwxr-xr-x | src/__main__.py | 4 |
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): ''' |
