]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/taskbar.c
*fix* bug fixed (multi-desktop and taskbar_active_id != taskbar_id)
[chaz/tint2] / src / taskbar / taskbar.c
index f63c6b14b52e372106bf7c8f908127d588e6409e..32d080b028174bbc5f633e8331c38bb3734e26cb 100644 (file)
@@ -268,7 +268,7 @@ void resize_taskbar(void *obj)
                        tsk = l->data;
                        if (!tsk->area.on_screen) continue;
                        tsk->area.posx = x;
-                       if (tsk->area.width != pixel_width) set_task_redraw(tsk);
+                       set_task_redraw(tsk);  // always redraw task, because the background could have changed (taskbar_active_id)
                        tsk->area.width = pixel_width;
                        if (modulo_width) {
                                tsk->area.width++;
@@ -306,7 +306,7 @@ void resize_taskbar(void *obj)
                        tsk = l->data;
                        if (!tsk->area.on_screen) continue;
                        tsk->area.posy = y;
-                       if (tsk->area.height != pixel_height) set_task_redraw(tsk);
+                       set_task_redraw(tsk);  // always redraw task, because the background could have changed (taskbar_active_id)
                        tsk->area.height = pixel_height;
                        if (modulo_height) {
                                tsk->area.height++;
This page took 0.022201 seconds and 4 git commands to generate.