mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-13 00:00:31 +01:00
XQuartz: Return BadRequest when SendPSN isn't implemented rather than success
This commit is contained in:
parent
276ee3bb08
commit
49871e9917
1 changed files with 6 additions and 5 deletions
|
|
@ -512,11 +512,12 @@ ProcAppleWMSendPSN(register ClientPtr client)
|
|||
|
||||
REQUEST_SIZE_MATCH(xAppleWMSendPSNReq);
|
||||
|
||||
if(appleWMProcs->SendPSN) {
|
||||
err = appleWMProcs->SendPSN(stuff->psn_hi, stuff->psn_lo);
|
||||
if (err != Success) {
|
||||
return err;
|
||||
}
|
||||
if(!appleWMProcs->SendPSN)
|
||||
return BadRequest;
|
||||
|
||||
err = appleWMProcs->SendPSN(stuff->psn_hi, stuff->psn_lo);
|
||||
if (err != Success) {
|
||||
return err;
|
||||
}
|
||||
|
||||
return (client->noClientException);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue