mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 07:00:03 +01:00
Mixed up reply vs request. Obviously, the size substracted from reply struct's one has to be the one of the generic reply, not generic requst :o Background: the meaning of the length field isn't entirely intuitive. a) the size is in 4-byte units, instead of bytes (therefore passing through bytes_to_int32() call) b) it's not the total packet size, but only the *extra* payload size, ergo: how much is the packet longer than a xGenericReply = 8 units = 32 bytes. (min. packet size is 32 bytes -> length = 0) In order to prevent those kind of coding errors ever happening again, it might be a good idea putting that into a generic macro. Fixes: |
||
|---|---|---|
| .. | ||
| meson.build | ||
| randr.c | ||
| randrstr.h | ||
| randrstr_priv.h | ||
| rrcrtc.c | ||
| rrdispatch.c | ||
| rrinfo.c | ||
| rrlease.c | ||
| rrmode.c | ||
| rrmonitor.c | ||
| rroutput.c | ||
| rrpointer.c | ||
| rrproperty.c | ||
| rrprovider.c | ||
| rrproviderproperty.c | ||
| rrscreen.c | ||
| rrsdispatch.c | ||
| rrtransform.c | ||
| rrtransform.h | ||
| rrxinerama.c | ||