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:
parent
3514982955
commit
5cabcab2f5
4
ewmh.c
4
ewmh.c
|
@ -396,9 +396,9 @@ ewmh_get_window_icon(Window w)
|
|||
{
|
||||
pixel = data[i];
|
||||
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[2] = pixel & 0xff; /* B */
|
||||
imgdata[0] = pixel & 0xff; /* B */
|
||||
}
|
||||
|
||||
XFree(wdata);
|
||||
|
|
Loading…
Reference in New Issue