ewmh: s/NetWMIcon/netwm_icon_t/

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-18 09:29:57 +02:00
parent 24860ac3cb
commit 8753a54c65
3 changed files with 6 additions and 6 deletions

6
ewmh.c
View File

@ -610,11 +610,11 @@ ewmh_check_client_hints(client_t *c)
p_delete(&reply);
}
NetWMIcon *
netwm_icon_t *
ewmh_get_window_icon(xcb_window_t w)
{
double alpha;
NetWMIcon *icon;
netwm_icon_t *icon;
int size, i;
uint32_t *data;
unsigned char *imgdata;
@ -631,7 +631,7 @@ ewmh_get_window_icon(xcb_window_t w)
return NULL;
}
icon = p_new(NetWMIcon, 1);
icon = p_new(netwm_icon_t, 1);
icon->width = data[0];
icon->height = data[1];

4
ewmh.h
View File

@ -29,7 +29,7 @@ typedef struct
int height;
int width;
unsigned char *image;
} NetWMIcon;
} netwm_icon_t;
void ewmh_init_atoms(void);
void ewmh_set_supported_hints(int);
@ -42,7 +42,7 @@ int ewmh_process_client_message(xcb_client_message_event_t *);
void ewmh_update_net_client_list_stacking(int);
void ewmh_check_client_hints(client_t *);
void ewmh_update_workarea(int);
NetWMIcon * ewmh_get_window_icon(xcb_window_t);
netwm_icon_t * ewmh_get_window_icon(xcb_window_t);
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

View File

@ -73,7 +73,7 @@ tasklist_draw(draw_context_t *ctx, int screen,
area_t area;
char *text;
int n = 0, i = 0, box_width = 0, icon_width = 0, box_width_rest = 0, j = 0;
NetWMIcon *icon;
netwm_icon_t *icon;
markup_parser_data_t *p;
const char *elements[] = { "bg", NULL };
xcolor_t bg_color;