From a5ac3c871219348f0269a256e0c4efcbdb352af4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 10:43:45 +1000 Subject: [PATCH] present: add missing byte swapping for various fields Co-Authored-by: Claude Code Part-of: --- present/present_request.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/present/present_request.c b/present/present_request.c index 5baff57d2..24d9d590a 100644 --- a/present/present_request.c +++ b/present/present_request.c @@ -353,14 +353,18 @@ sproc_present_pixmap(ClientPtr client) swapl(&stuff->window); swapl(&stuff->pixmap); + swapl(&stuff->serial); swapl(&stuff->valid); swapl(&stuff->update); swaps(&stuff->x_off); swaps(&stuff->y_off); + swapl(&stuff->target_crtc); + swapl(&stuff->wait_fence); + swapl(&stuff->idle_fence); + swapl(&stuff->options); swapll(&stuff->target_msc); swapll(&stuff->divisor); swapll(&stuff->remainder); - swapl(&stuff->idle_fence); return (*proc_present_vector[stuff->presentReqType]) (client); } @@ -383,6 +387,7 @@ sproc_present_select_input (ClientPtr client) REQUEST(xPresentSelectInputReq); REQUEST_SIZE_MATCH(xPresentSelectInputReq); + swapl(&stuff->eid); swapl(&stuff->window); swapl(&stuff->eventMask); return (*proc_present_vector[stuff->presentReqType]) (client);