mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 21:28:04 +02:00
Prefer the xcb_generic_error_t we already have over casting to xEvent.
Just a minor cleanup. Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
75ea8c3793
commit
d3eab4a38f
1 changed files with 3 additions and 3 deletions
|
|
@ -477,10 +477,10 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
|
|||
|
||||
/* do not die on "no such font", "can't allocate",
|
||||
"can't grab" failures */
|
||||
switch(err->errorCode)
|
||||
switch(error->error_code)
|
||||
{
|
||||
case BadName:
|
||||
switch(err->majorCode)
|
||||
switch(error->major_code)
|
||||
{
|
||||
case X_LookupColor:
|
||||
case X_AllocNamedColor:
|
||||
|
|
@ -489,7 +489,7 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
|
|||
}
|
||||
break;
|
||||
case BadFont:
|
||||
if(err->majorCode == X_QueryFont) {
|
||||
if(error->major_code == X_QueryFont) {
|
||||
free(error);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue