do not drop XSetInputFocus errors; but we can not give focus to unmapped windows
This commit is contained in:
parent
475a9da7af
commit
8434040cb2
|
@ -175,8 +175,7 @@ exit_on_signal(int sig __attribute__ ((unused)))
|
|||
static int
|
||||
xerror(Display * edpy, XErrorEvent * ee)
|
||||
{
|
||||
if(ee->error_code == BadWindow
|
||||
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch))
|
||||
if(ee->error_code == BadWindow)
|
||||
return 0;
|
||||
warn("fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code);
|
||||
return xerrorxlib(edpy, ee); /* may call exit */
|
||||
|
|
4
client.c
4
client.c
|
@ -317,10 +317,6 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
|
|||
else
|
||||
client_list_append(&globalconf.clients, c);
|
||||
|
||||
/* focus ? */
|
||||
if(globalconf.screens[c->screen].new_get_focus)
|
||||
focus(c, c->screen);
|
||||
|
||||
/* some windows require this */
|
||||
XMoveResizeWindow(globalconf.display, c->win, c->geometry.x, c->geometry.y,
|
||||
c->geometry.width, c->geometry.height);
|
||||
|
|
Loading…
Reference in New Issue