From e34f85e6d4a8c88a796b5c096d483422c9a80e40 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 14 Apr 2026 17:28:04 +0200 Subject: Fix panel clearing functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 4 ++-- 1 file 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): ''' -- cgit v1.2.3-70-g09d2