X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver-command.c;h=6adf1fdd5e852ca6a9b9987842b88593b34ac987;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=6c039fb27d1c0173bdc2c91f40a4d1af5d6a9653;hpb=3f438031d610c7e15fd33876a879b97e290e05fb;p=xscreensaver diff --git a/driver/xscreensaver-command.c b/driver/xscreensaver-command.c index 6c039fb2..6adf1fdd 100644 --- a/driver/xscreensaver-command.c +++ b/driver/xscreensaver-command.c @@ -1,4 +1,4 @@ -/* xscreensaver-command, Copyright (c) 1991-2004 Jamie Zawinski +/* xscreensaver-command, Copyright (c) 1991-2013 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -23,7 +23,7 @@ # include #endif -#include /* for CARD32 */ +/* #include / * for CARD32 */ #include #include #include /* for XGetClassHint() */ @@ -31,6 +31,14 @@ #include /* only needed to get through xscreensaver.h */ + +/* You might think that to read an array of 32-bit quantities out of a + server-side property, you would pass an array of 32-bit data quantities + into XGetWindowProperty(). You would be wrong. You have to use an array + of longs, even if long is 64 bits (using 32 of each 64.) + */ +typedef long PROP32; + #include "remote.h" #include "version.h" @@ -57,7 +65,7 @@ static char *usage = "\n\ usage: %s -