ignore BadMatch errors that can't be avoided
This commit is contained in:
parent
0e9bd66b75
commit
8a972b3879
1 changed files with 7 additions and 1 deletions
|
@ -3013,11 +3013,17 @@ gboolean client_focus(ObClient *self)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
ob_debug("Focusing client \"%s\" at time %u\n", self->title, event_curtime);
|
||||
ob_debug_type(OB_DEBUG_FOCUS,
|
||||
"Focusing client \"%s\" at time %u\n",
|
||||
self->title, event_curtime);
|
||||
|
||||
if (self->can_focus) {
|
||||
/* This can cause a BadMatch error with CurrentTime, or if an app
|
||||
passed in a bad time for _NET_WM_ACTIVE_WINDOW. */
|
||||
xerror_set_ignore(TRUE);
|
||||
XSetInputFocus(ob_display, self->window, RevertToPointerRoot,
|
||||
event_curtime);
|
||||
xerror_set_ignore(FALSE);
|
||||
}
|
||||
|
||||
if (self->focus_notify) {
|
||||
|
|
Loading…
Reference in a new issue