diff options
author | Adam Jackson <ajax@redhat.com> | 2009-11-09 11:12:22 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-19 16:33:26 +1000 |
commit | 20beb2580f33add2ca7911a6d9410422a1d3079b (patch) | |
tree | 9cf8f8ce124ef967fb45eac194531cb951c53b0c /randr | |
parent | 2db157924b582933c4b6897505e6f4170e23b56f (diff) |
randr: Fill in errorValue when verifying outputs/crtcs/modes
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit c7d1319872e0ae0b7d945e9af8c4027ee5aa2055)
Diffstat (limited to 'randr')
-rw-r--r-- | randr/randrstr.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h index af1437404..975fe3396 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -344,24 +344,30 @@ extern _X_EXPORT RESTYPE RRCrtcType, RRModeType, RROutputType; {\ int rc = dixLookupResourceByType((pointer *)&(ptr), id,\ RROutputType, client, a);\ - if (rc != Success)\ + if (rc != Success) {\ + client->errorValue = id;\ return (rc == BadValue) ? RRErrorBase + BadRROutput : rc;\ + }\ } #define VERIFY_RR_CRTC(id, ptr, a)\ {\ int rc = dixLookupResourceByType((pointer *)&(ptr), id,\ RRCrtcType, client, a);\ - if (rc != Success)\ + if (rc != Success) {\ + client->errorValue = id;\ return (rc == BadValue) ? RRErrorBase + BadRRCrtc : rc;\ + }\ } #define VERIFY_RR_MODE(id, ptr, a)\ {\ int rc = dixLookupResourceByType((pointer *)&(ptr), id,\ RRModeType, client, a);\ - if (rc != Success)\ + if (rc != Success) {\ + client->errorValue = id;\ return (rc == BadValue) ? RRErrorBase + BadRRMode : rc;\ + }\ } #define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey)) |