[ewmh] Fix data type in EWMH icon

Actually, it should be CARD32 in Xlib, but somehow this did not work
until I used unsigned long. This seems to be fixed in xcb, I'm
impressed.
This commit is contained in:
Julien Danjou 2008-03-27 11:08:31 +00:00
parent fa5bc02103
commit 75926a6039
1 changed files with 2 additions and 2 deletions

4
ewmh.c
View File

@ -430,7 +430,7 @@ ewmh_get_window_icon(xcb_window_t w)
double alpha;
NetWMIcon *icon;
int size, i;
unsigned long *data;
uint32_t *data;
unsigned char *imgdata, *wdata;
xcb_get_property_reply_t *r;
@ -454,7 +454,7 @@ ewmh_get_window_icon(xcb_window_t w)
icon = p_new(NetWMIcon, 1);
data = (unsigned long *) wdata;
data = (uint32_t *) wdata;
icon->width = data[0];
icon->height = data[1];