aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xfixes/saveset.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xfixes/saveset.c')
-rw-r--r--xorg-server/xfixes/saveset.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/xorg-server/xfixes/saveset.c b/xorg-server/xfixes/saveset.c
index ba959c22b..eb3f6589e 100644
--- a/xorg-server/xfixes/saveset.c
+++ b/xorg-server/xfixes/saveset.c
@@ -29,31 +29,29 @@
int
ProcXFixesChangeSaveSet(ClientPtr client)
{
- Bool toRoot, map;
- int result;
- WindowPtr pWin;
+ Bool toRoot, map;
+ int result;
+ WindowPtr pWin;
+
REQUEST(xXFixesChangeSaveSetReq);
-
+
REQUEST_SIZE_MATCH(xXFixesChangeSaveSetReq);
result = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess);
if (result != Success)
return result;
if (client->clientAsMask == (CLIENT_BITS(pWin->drawable.id)))
return BadMatch;
- if ((stuff->mode != SetModeInsert) && (stuff->mode != SetModeDelete))
- {
- client->errorValue = stuff->mode;
- return BadValue;
+ if ((stuff->mode != SetModeInsert) && (stuff->mode != SetModeDelete)) {
+ client->errorValue = stuff->mode;
+ return BadValue;
}
- if ((stuff->target != SaveSetNearest) && (stuff->target != SaveSetRoot))
- {
- client->errorValue = stuff->target;
- return BadValue;
+ if ((stuff->target != SaveSetNearest) && (stuff->target != SaveSetRoot)) {
+ client->errorValue = stuff->target;
+ return BadValue;
}
- if ((stuff->map != SaveSetMap) && (stuff->map != SaveSetUnmap))
- {
- client->errorValue = stuff->map;
- return BadValue;
+ if ((stuff->map != SaveSetMap) && (stuff->map != SaveSetUnmap)) {
+ client->errorValue = stuff->map;
+ return BadValue;
}
toRoot = (stuff->target == SaveSetRoot);
map = (stuff->map == SaveSetMap);
@@ -67,5 +65,5 @@ SProcXFixesChangeSaveSet(ClientPtr client)
swaps(&stuff->length);
swapl(&stuff->window);
- return (*ProcXFixesVector[stuff->xfixesReqType])(client);
+ return (*ProcXFixesVector[stuff->xfixesReqType]) (client);
}