mirror of
https://github.com/0intro/wmii
synced 2025-01-11 12:49:38 +03:00
Ignore BadAccess error on XGrabKey. Fix + cleanup in column.c
This commit is contained in:
parent
e2652df909
commit
8b1e64bb50
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user