summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-03-12 12:14:44 -0700
committerKeith Packard <keithp@keithp.com>2018-03-14 10:14:04 -0700
commit52048ce29f872192478fece3887b7bc1c8aace7d (patch)
treef00817c4516b187cfffeba40e1f02e563afb54f2 /randr
parentbeda6afb3c33adbf77637141f05631081894e93a (diff)
Xext/saver: Swap ScreenSaverSuspend 'suspend' field. Handle old XCB clients.
This field was defined as a Bool in the protocol headers and BOOL in xcb. Bool is not a valid type for protocol fields. It is defined as 'int' by Xdefs.h, which we expect to be 32-bits on all machines. The protocol headers and xcb have patches posted to switch to CARD32, which is at least well defined. This change adds the necessary byte swapping to handle other-endian clients with this 32-bit field, and then changes the request processing to compare all 32-bits against zero so that it works with both new and old clients. On MSB machines, Xlib will continue to work properly, but old XCB will not interoperate with the X server (either before or after this patch). Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Mihai Moldovan <ionic@ionic.de> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'randr')
0 files changed, 0 insertions, 0 deletions