mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 18:48:46 +00:00
XI: directly write out X_GetDeviceButtonMapping reply
Write out the X_GetDeviceButtonMapping reply directly (and do the swapping within the request handler) instead of going through separate callback that's having demux the replies again. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult .
parent
0c58c22427
commit
42428362fb
@@ -422,10 +422,7 @@ SReplyIDispatch(ClientPtr client, int len, xGrabDeviceReply * rep)
|
||||
{
|
||||
/* All we look at is the type field */
|
||||
/* This is common to all replies */
|
||||
if (rep->RepType == X_GetDeviceButtonMapping)
|
||||
SRepXGetDeviceButtonMapping(client, len,
|
||||
(xGetDeviceButtonMappingReply *) rep);
|
||||
else if (rep->RepType == X_SetDeviceButtonMapping)
|
||||
if (rep->RepType == X_SetDeviceButtonMapping)
|
||||
SRepXSetDeviceButtonMapping(client, len,
|
||||
(xSetDeviceButtonMappingReply *) rep);
|
||||
else if (rep->RepType == X_QueryDeviceState)
|
||||
|
||||
Reference in New Issue
Block a user