From 5cabcab2f5228dddfb63212bf39f169bbbedd59a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 25 Mar 2008 19:30:31 +0100 Subject: [PATCH] Fix a bug in NET_WM icon, blue and red were reversed Signed-off-by: Julien Danjou --- ewmh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ewmh.c b/ewmh.c index 576f642f..cfabe549 100644 --- a/ewmh.c +++ b/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);