From 34b341767c989a9c5e7fead8d4655b666d2e8aaf Mon Sep 17 00:00:00 2001 From: o9000 Date: Wed, 4 Nov 2015 11:58:11 +0100 Subject: [PATCH] Task: disable pixmap caching (temporary change until we make it work with mouse effects) --- src/taskbar/task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/taskbar/task.c b/src/taskbar/task.c index e46c4a9..b97a5c3 100644 --- a/src/taskbar/task.c +++ b/src/taskbar/task.c @@ -356,7 +356,7 @@ void draw_task_icon (Task *tsk, int text_width) void draw_task (void *obj, cairo_t *c) { Task *tsk = obj; - tsk->state_pix[tsk->current_state] = tsk->area.pix; + //tsk->state_pix[tsk->current_state] = tsk->area.pix; PangoLayout *layout; Color *config_text; int width=0, height; @@ -515,8 +515,8 @@ void set_task_state(Task *tsk, int state) Task* tsk1 = g_ptr_array_index(task_group, i); tsk1->current_state = state; tsk1->area.bg = panel1[0].g_task.background[state]; - tsk1->area.pix = tsk1->state_pix[state]; - if (tsk1->state_pix[state] == 0) + //tsk1->area.pix = tsk1->state_pix[state]; + if (!tsk1->area.pix) tsk1->area.redraw = 1; if (state == TASK_ACTIVE && g_slist_find(urgent_list, tsk1)) del_urgent(tsk1);