Fix a bug in NET_WM icon, blue and red were reversed

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-25 19:30:31 +01:00
parent 3514982955
commit 5cabcab2f5
1 changed files with 2 additions and 2 deletions

4
ewmh.c
View File

@ -396,9 +396,9 @@ ewmh_get_window_icon(Window w)
{ {
pixel = data[i]; pixel = data[i];
imgdata[3] = (pixel >> 24) & 0xff; /* A */ imgdata[3] = (pixel >> 24) & 0xff; /* A */
imgdata[0] = (pixel >> 16) & 0xff; /* R */ imgdata[2] = (pixel >> 16) & 0xff; /* R */
imgdata[1] = (pixel >> 8) & 0xff; /* G */ imgdata[1] = (pixel >> 8) & 0xff; /* G */
imgdata[2] = pixel & 0xff; /* B */ imgdata[0] = pixel & 0xff; /* B */
} }
XFree(wdata); XFree(wdata);