Commit Graph

21371 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
7c3ddc80ef dix: drop obsolete WriteSwappedDataToClient() macro
This macro isn't and shouldn't be used anymore, so get rid of it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 15:45:47 +02:00
Enrico Weigelt, metux IT consult
6638af9138 dbe: xtest: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 15:41:00 +02:00
Enrico Weigelt, metux IT consult
40faa17609 damageext: xtest: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 15:40:45 +02:00
Enrico Weigelt, metux IT consult
7e7716c6b2 compext: xtest: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 15:39:27 +02:00
Enrico Weigelt, metux IT consult
5b38596e70 xres: ProcXResQueryClients(): use X_SEND_REPLY_WITH_RPCBUF() macro
Use the new X_SEND_REPLY_WITH_RPCBUF() macro for final reply write out.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:44:27 +02:00
Enrico Weigelt, metux IT consult
82677b237b xkb: XkbWriteGeomSections(): use x_rpcbuf_t
Use x_rpcbuf_t for payload chunk assembly / byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:44:05 +02:00
Enrico Weigelt, metux IT consult
9b640c0fd7 xext: xcmisc: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:37:51 +02:00
Enrico Weigelt, metux IT consult
fd96c2950e xkb: XkbWriteGeomColors(): use x_rpcbuf_t
Use x_rpcbuf_t for assembling reply payload chunk.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:33:10 +02:00
Enrico Weigelt, metux IT consult
0bf7d613d5 xf86vidmode: ProcVidModeSetGammaRamp(): use x_rpcbuf_t
Use x_rpcbuf_t for assembling reply payload.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:28:11 +02:00
Enrico Weigelt, metux IT consult
2c2ce8bfea xf86bigfont: ProcXF86BigfontQueryFont(): use x_rpcbuf_t
Use x_rpcbuf_t instead of our own local buffer for the reply
payload assembly and byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:27:58 +02:00
Enrico Weigelt, metux IT consult
64996477f5 Xi: xtest: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:27:29 +02:00
stefan11111
4c79fd513a Xi: Fix xinput property count
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
2025-08-22 14:27:01 +02:00
Enrico Weigelt, metux IT consult
4a286358f4 xext: dpms: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:25:05 +02:00
Enrico Weigelt, metux IT consult
104a7f6b4c xext: xtest: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:24:40 +02:00
Enrico Weigelt, metux IT consult
272995f32a xext: xres: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:24:32 +02:00
Enrico Weigelt, metux IT consult
ab597b8d98 xext: xf86bigfont: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:24:20 +02:00
Enrico Weigelt, metux IT consult
0f0d95d50a xext: xv: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:23:52 +02:00
Enrico Weigelt, metux IT consult
a98e7755eb xext: shm: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:23:41 +02:00
Enrico Weigelt, metux IT consult
c36eeb24a7 xext: xvmc: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:23:19 +02:00
Enrico Weigelt, metux IT consult
f69c8746d1 xext: shape: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:22:37 +02:00
Enrico Weigelt, metux IT consult
0b10a36c8a xext: selinux: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:22:20 +02:00
Enrico Weigelt, metux IT consult
d983c4137d xext: saver: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:18:45 +02:00
Enrico Weigelt, metux IT consult
34195741b7 xext: geext: use X_SEND_REPLY_SIMPLE()
Use X_SEND_REPLY_SIMPLE() for sending out simple replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:15:02 +02:00
Enrico Weigelt, metux IT consult
d6089c52c3 treewide: macro for computing extra units needed for reply header
Add and use macro X_REPLY_HEADER_UNITS() for computing how many
extra protocol units are needed for a reply header (for .length field)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 14:14:32 +02:00
Enrico Weigelt, metux IT consult
bb6a70be0f panoramix: XineramaGetImageData() split out code inside the big loop
Split out the code inside the big for-each-screen loop into separate
function.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-22 13:39:09 +02:00
Enrico Weigelt, metux IT consult
f9fba638cf dix: add macro X_SEND_REPLY_SIMPLE() for sending simple replies
This macro fixes up a given reply header, computes it's full size
and sends it out.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 18:32:45 +02:00
Enrico Weigelt, metux IT consult
658d2db226 dix: rpcbuf: add x_rpcbuf_write_INT32()
litle wrapper for directly writing INT32 w/o signess warnings.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 17:42:04 +02:00
Enrico Weigelt, metux IT consult
d900434235 xfixes: ProcXFixesFetchRegion() use x_rpcbuf_t and X_SEND_REPLY_WITH_RPCBUF()
Use x_rpcbuf_t for reply payload assembly, and X_SEND_REPLY_WITH_RPCBUF()
for sending out the whole reply.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 13:29:52 +02:00
Enrico Weigelt, metux IT consult
16997296d3 xkb: use x_rpcbuf_t in XkbWriteGeomShapes()
Use x_rpcbuf_t for assembling and byte-swapping the reply payload chunk.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 13:12:16 +02:00
Enrico Weigelt, metux IT consult
a2211393df xkb: XkbWriteGeomDoodads(): use x_rpcbuf_t
Use x_rpcbuf_t for reply payload chunk assembly and byte-swapping.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 13:03:25 +02:00
Enrico Weigelt, metux IT consult
ca27ebbd7d xkb: XkbAssembleNames(): use x_rpcbuf_t for payload assembly
Use rpcbuf for assembling and byte-swapping xkb names payload.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 13:03:12 +02:00
Enrico Weigelt, metux IT consult
b0149c0183 xkb: XkbAssembleIndicatorMap(): use x_rpcbuf_t
Use x_rpbuf_t instead of raw buffer for assembling and byte-swapping
indicator map payload.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 13:02:53 +02:00
Enrico Weigelt, metux IT consult
d3f9dc4973 xkb: use x_rpcbuf_t in XkbWriteGeomOverlay()
Use x_rpcbuf_t for assembling and byte-swapping the payload chunk.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 12:54:35 +02:00
Enrico Weigelt, metux IT consult
c621506c9e xkb: ProcXkbGetKbdByName(): drop obsolete x_rpcbuf_makeroom() call
Since no consumer of this rpcbuf is writing directly to the underlying
buffer space anymore, there's no need to explicitly make room.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-21 12:54:12 +02:00
callmetango
19cf00d3a3 NEWS: updated to version 25.0.0.9
Updated the NEWS with the shortlogs of version 25.0.0.8 and 25.0.0.9.

Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-08-21 11:30:56 +02:00
Enrico Weigelt, metux IT consult
31b6e41c56 xkb: ProcXkbGetMap(): clean up local variables
declare them where needed.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 18:35:21 +02:00
Enrico Weigelt, metux IT consult
bec3b45c02 xkb: ProcXkbGetMap(): rename local variable
Give the variable `n` a better name: `numKeys`.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 18:35:21 +02:00
Enrico Weigelt, metux IT consult
b8a30d7347 xkb: ProcXkbGetMap(): use X_SEND_REPLY_WITH_RPCBUF()
Use generic macro for sending out final reply.
Also dropping our own unnecessary size payload computation - rpcbuf
already giving us this value.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 18:35:21 +02:00
Enrico Weigelt, metux IT consult
7f648df8af dix: rpcbuf: add x_rpcbuf_write_rect() for writing RECTANGLE PDU
The `RECTANGLE` PDU is pretty common, so it's good to have a helper for
writing this, so it doesn't need to be open-coded everywhere.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:37:47 +02:00
Enrico Weigelt, metux IT consult
2edb06c8bc dix: rpcbuf: add x_rpcbuf_write_rpcbuf_pad()
This is writing the contents of source rpcbuf into the target one,
pads it and finally clears the source buffer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:37:02 +02:00
Enrico Weigelt, metux IT consult
e197043099 xkb: ProcXkbGetCompatMap(): clean up variable declarations
Declara only what's really needed, where it's needed.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:32:32 +02:00
Enrico Weigelt, metux IT consult
743838456d xkb: ProcXkbGetCompatMap(): use X_SEND_REPLY_WITH_RPCBUF()
Now that we're entirely operating on x_rpcbuf_t, we can use generic
macro for the whole final write out, including setting standard
reply header fields.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:32:32 +02:00
Enrico Weigelt, metux IT consult
eda4dcabf7 xkb: use x_rpcbuf_t in XkbAssembleCompatMap()
Instead of operating on a raw buffer, use x_rpcbuf_t to assemble the
compat map payload.

ProcXkbGetCompatMap() now can directly operate on generic x_rpcbuf_t
and doesn't need it's own private buffer management.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:32:32 +02:00
Enrico Weigelt, metux IT consult
eea90293fb xkb: simplify XkbAssembleGeometry()
Preparation for further refactoring.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:32:05 +02:00
Enrico Weigelt, metux IT consult
7b0e5d9ac5 xkb: ProcXkbGetKbdByName(): drop unneeded payload size computation
The amount of data written by XkbAssembleMap() is already known rpcbuf,
so no need for additionally computing this our own anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:31:08 +02:00
Enrico Weigelt, metux IT consult
66311c6d51 dix: rpcbuf: add x_rpcbuf_write_counted_string_pad()
Add a helper for writing pascal-type strings: the counter is written
as CARD16, then followed by the string characters (w/o zero), and
finally everything padded up to full protocol units.

This encoding is used in various places throughout the Xserver,
eg. in xkb.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:13:07 +02:00
Enrico Weigelt, metux IT consult
4c18cebf09 xfixes: cursor: use x_rpcbuf_t and X_SEND_REPLY_WITH_RPCBUF()
Use x_rpcbuf_t for reply payload assembly, and X_SEND_REPLY_WITH_RPCBUF()
for sending out the whole replies.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-20 11:10:52 +02:00
Enrico Weigelt, metux IT consult
8ea70e9e78 treewide: use use x_rpcbuf_wsize_units() instead of rpcbuf.wpos
In the request handlers, use x_rpcbuf_wsize_units() for payload length
computation.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-19 15:50:54 +02:00
Enrico Weigelt, metux IT consult
15fdd0ae20 dix: fix X_SEND_REPLY_WITH_RPCBUF()
We need to call bytes_to_int32() instead of pad_to_int32(),
otherwise our computation is totally broken.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-18 19:38:15 +02:00
Enrico Weigelt, metux IT consult
bca6d2ddcd vidmode: ProcVidModeGetMonitor(): create reply struct right before send
Move the declaration of the reply struct down to after the payload has
been finally assembled, so we don't need extra payload size compuation
anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-18 17:42:13 +02:00