]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/task.h
*fix* better internal urgent task handling
[chaz/tint2] / src / taskbar / task.h
index d1870dbbbca9a6a25beb8216061f5b1a393c58ab..e67a04513b542f44d07e367b00a8920d55b6f4cf 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <X11/Xlib.h>
 #include <pango/pangocairo.h>
+#include <Imlib2.h>
 #include "common.h"
 
 
@@ -25,6 +26,8 @@ typedef struct {
        int icon_size1;
        int maximum_width;
        int maximum_height;
+       int alpha, saturation, brightness;
+       int alpha_active, saturation_active, brightness_active;
        // starting position for text ~ task_padding + task_border + icon_size
        double text_posx, text_posy;
 
@@ -43,14 +46,15 @@ typedef struct {
        // TODO: group task with list of windows here
        Window win;
        int  desktop;
-       unsigned int *icon_data;
-       int icon_width;
-       int icon_height;
+       Imlib_Image icon;
+       Imlib_Image icon_active;
+       unsigned int icon_width;
+       unsigned int icon_height;
        char *title;
+       int urgent_tick;
 } Task;
 
 
-
 Task *add_task (Window win);
 void remove_task (Task *tsk);
 
@@ -58,7 +62,13 @@ void draw_task (void *obj, cairo_t *c, int active);
 
 void get_icon (Task *tsk);
 void get_title(Task *tsk);
+void active_task();
+
+Task *next_task (Task *tsk);
+Task *prev_task (Task *tsk);
 
+void add_urgent(Task *tsk);
+void del_urgent(Task *tsk);
 
 #endif
 
This page took 0.020512 seconds and 4 git commands to generate.