do not drop XSetInputFocus errors; but we can not give focus to unmapped windows

This commit is contained in:
Julien Danjou 2008-01-25 09:37:41 +01:00
parent 475a9da7af
commit 8434040cb2
2 changed files with 1 additions and 6 deletions

View File

@ -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 */

View File

@ -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);