Ignore BadAccess error on XGrabKey. Fix + cleanup in column.c

This commit is contained in:
Kris Maglione 2006-06-29 22:58:06 -04:00
parent e2652df909
commit 8b1e64bb50
2 changed files with 3 additions and 3 deletions

View File

@ -150,8 +150,8 @@ scale_column(Area *a, float h)
void
arrange_column(Area *a, Bool dirty)
{
unsigned int num_frames = 0, yoff = a->rect.y, h;
Frame *f;
unsigned int num_frames = 0, yoff = a->rect.y, h;
unsigned int min_height = 2 * height_of_bar();
if(a->floating || !a->frame)
@ -206,7 +206,7 @@ Fallthrough:
}
relax_column(a);
focus_view(screen, v);
focus_view(screen, a->view);
flush_masked_events(EnterWindowMask);
}

View File

@ -194,7 +194,7 @@ wmii_error_handler(Display *dpy, XErrorEvent *error)
|| (error->request_code == X_ConfigureWindow
&& error->error_code == BadMatch)
|| (error->request_code == X_GrabKey
&& error->error_code == BadMatch))
&& error->error_code == BadAccess))
return 0;
fprintf(stderr, "wmiiwm: fatal error: Xrequest code=%d, Xerror code=%d\n",
error->request_code, error->error_code);