mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
xfixes: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/request_priv.h"
|
||||
#include "dix/resource_priv.h"
|
||||
|
||||
#include "xfixesint.h"
|
||||
@@ -30,16 +31,13 @@
|
||||
int
|
||||
ProcXFixesChangeSaveSet(ClientPtr client)
|
||||
{
|
||||
X_REQUEST_HEAD_STRUCT(xXFixesChangeSaveSetReq);
|
||||
X_REQUEST_FIELD_CARD32(window);
|
||||
|
||||
Bool toRoot, map;
|
||||
int result;
|
||||
WindowPtr pWin;
|
||||
|
||||
REQUEST(xXFixesChangeSaveSetReq);
|
||||
REQUEST_SIZE_MATCH(xXFixesChangeSaveSetReq);
|
||||
|
||||
if (client->swapped)
|
||||
swapl(&stuff->window);
|
||||
|
||||
result = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess);
|
||||
if (result != Success)
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user