summaryrefslogtreecommitdiff
path: root/include/X11/extensions/saverproto.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-03-12 11:57:12 -0700
committerKeith Packard <keithp@keithp.com>2018-03-14 10:19:19 -0700
commit702d2eaecd00e2a943e883b8f683ec9fb79a0652 (patch)
treee5005ff7ee4ff119ec7478604de5590a98858b9f /include/X11/extensions/saverproto.h
parentbac7b0b421115448516da4b6214f07851dc7cdeb (diff)
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>
Diffstat (limited to 'include/X11/extensions/saverproto.h')
-rw-r--r--include/X11/extensions/saverproto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/X11/extensions/saverproto.h b/include/X11/extensions/saverproto.h
index 7197084..b3e5653 100644
--- a/include/X11/extensions/saverproto.h
+++ b/include/X11/extensions/saverproto.h
@@ -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