*fix* only redraw task on state change, if not already drawn

git-svn-id: http://tint2.googlecode.com/svn/trunk@329 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2010-01-09 09:34:15 +00:00
parent 739af13714
commit 8280d4dc87
3 changed files with 32 additions and 10 deletions

View File

@@ -54,6 +54,7 @@ typedef struct {
int desktop;
int current_state;
Imlib_Image icon[TASK_STATE_COUNT];
Pixmap state_pix[TASK_STATE_COUNT];
unsigned int icon_width;
unsigned int icon_height;
char *title;
@@ -70,6 +71,7 @@ void get_icon (Task *tsk);
void get_title(Task *tsk);
void active_task();
void set_task_state(Task* tsk, int state);
void set_task_redraw(Task* tsk);
Task *next_task (Task *tsk);
Task *prev_task (Task *tsk);