- Enabled full error handling

This commit is contained in:
Ben Reaves
2020-02-05 02:47:53 -06:00
parent 2f2afecb6d
commit a30671b08c
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@@ -67,10 +67,10 @@ Display* open_display(){
}
int handle_error(Display* display, XErrorEvent* error){
// printf("X11 error: type=%d, serial=%lu, code=%d\n",
// error->type, error->serial, (int)error->error_code);
// xerror = True;
return 0;
printf("X11 error: type=%d, serial=%lu, code=%d\n",
error->type, error->serial, (int)error->error_code);
xerror = True;
return 1;
}
Window get_focus_window(Display* d){