mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Eliminate boilerplate around client->noClientException.
Just let Dispatch() check for a noClientException, rather than making every single dispatch procedure take care of it. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -57,11 +57,7 @@ ProcXFixesChangeSaveSet(ClientPtr client)
|
||||
}
|
||||
toRoot = (stuff->target == SaveSetRoot);
|
||||
map = (stuff->map == SaveSetMap);
|
||||
result = AlterSaveSetForClient(client, pWin, stuff->mode, toRoot, map);
|
||||
if (client->noClientException != Success)
|
||||
return(client->noClientException);
|
||||
else
|
||||
return(result);
|
||||
return AlterSaveSetForClient(client, pWin, stuff->mode, toRoot, map);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user