diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-21 21:36:02 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-21 21:36:02 +0000 |
| commit | 8a972b38791695f3e4f1b73f6b27a82fb20109c9 (patch) | |
| tree | ba98d714071f00b69233ac813e40a6304c01d705 | |
| parent | 0e9bd66b75725b4d6632eafcaeb34b9fe310e4ea (diff) | |
ignore BadMatch errors that can't be avoided
| -rw-r--r-- | openbox/client.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c index 849d87e3..78a6681d 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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) { |
