From 75926a60390c527780872122e078293aaab9c744 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 27 Mar 2008 11:08:31 +0000 Subject: [PATCH] [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. --- ewmh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ewmh.c b/ewmh.c index 17d86548..ca304bee 100644 --- a/ewmh.c +++ b/ewmh.c @@ -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];