X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=e801ac1858d2990e37a0de577c0d67e3ec71ba05;hb=63f1b1230c529c2c2b335a4becfae5cd15c0d9a4;hp=849d87e36235ef35856b3513c084878662529d62;hpb=0e9bd66b75725b4d6632eafcaeb34b9fe310e4ea;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 849d87e3..e801ac18 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -472,7 +472,7 @@ void client_manage(Window window) client_focus(self); } - /* client_activate does this but we aret using it so we have to do it + /* client_activate does this but we aren't using it so we have to do it here as well */ if (screen_showing_desktop) screen_show_desktop(FALSE); @@ -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) {