diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-06-20 14:17:07 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-06-20 14:17:07 +0100 |
commit | 23af93f4f59befee887624ad9a0e0c574393439c (patch) | |
tree | 270bf4963c42a55703a00e050688c06797c6c33f | |
parent | 5014e38500e12ac9bf3c207b72ebfbce3f1f6ae5 (diff) |
Fix test-net-wm-icons for x86_64
-rw-r--r-- | test-net-wm-icons.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test-net-wm-icons.c b/test-net-wm-icons.c index 2e67cc3..c5111e9 100644 --- a/test-net-wm-icons.c +++ b/test-net-wm-icons.c @@ -1,12 +1,13 @@ /* gcc test-net-wm-icons.c -o test-net-wm-icons.exe -lX11 */ +#include <stdio.h> #include <stdlib.h> #include <X11/Xlib.h> int main(int argc, char **argv) { /* Two test ARGB _NET_WM_ICO icons 16x16 and 32x32 */ - unsigned int buffer[] = {16, 16, 4294901760, 4294901760, 4294901760, 4294901760, \ + unsigned long buffer[] = {16, 16, 4294901760, 4294901760, 4294901760, 4294901760, \ 4294901760, 4294901760, 4294901760, 4294901760, 338034905, 3657433343, 0, 184483840, \ 234881279, 3053453567, 3221225727, 1879048447, 0, 0, 0, 0, 0, 0, 0, 1224737023, \ 3305111807, 3875537151,0, 0, 2063597823, 1291845887, 0, 67109119, 4294901760, \ @@ -166,7 +167,9 @@ int main(int argc, char **argv) XMapWindow(d, w); XFlush(d); sleep(20); - + + printf("Updating icons\n"); + int length = 2 + 16 * 16 + 2 + 32 * 32; XChangeProperty(d, w, net_wm_icon, cardinal, 32, PropModeReplace, (const unsigned char*) buffer, length); |