screensaver: Fix encoding of ScreenSaverSuspend 'suspend' element

Was using Bool, which is not a defined X protocol encoding type and
has presumably been a 32-bit type. Switch to a CARD32 to be compatible
while at least being well defined.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Mihai Moldovan <ionic@ionic.de>
This commit is contained in:
Keith Packard 2018-03-12 11:57:12 -07:00
parent bac7b0b421
commit 702d2eaecd
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ typedef struct _ScreenSaverSuspend {
CARD8 reqType;
CARD8 saverReqType;
CARD16 length B16;
Bool suspend B32;
CARD32 suspend B32; /* a boolean, but using the wrong encoding */
} xScreenSaverSuspendReq;
#define sz_xScreenSaverSuspendReq 8

View file

@ -5,5 +5,5 @@ includedir=@includedir@
Name: ScrnSaverProto
Description: ScrnSaver extension headers
Version: 1.2.2
Version: 1.2.3
Cflags: -I${includedir}