Output X11 protocol errors before breaking into debugger.
This commit is contained in:
parent
f66807f248
commit
c34b79ce43
|
@ -185,7 +185,12 @@ static int error_handler( Display *display, XErrorEvent *error_evt )
|
|||
error_evt->error_code, error_evt->request_code );
|
||||
return 0;
|
||||
}
|
||||
if (synchronous) DebugBreak(); /* force an entry in the debugger */
|
||||
if (synchronous)
|
||||
{
|
||||
ERR( "X protocol error: serial=%ld, request_code=%d - breaking into debugger\n",
|
||||
error_evt->serial, error_evt->request_code );
|
||||
DebugBreak(); /* force an entry in the debugger */
|
||||
}
|
||||
old_error_handler( display, error_evt );
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue