if (client_focused(self))
return TRUE;
- g_print("Focusing: %lx\n", self->window);
-
if (self->can_focus)
XSetInputFocus(ob_display, self->window, RevertToNone, CurrentTime);
void client_unfocus(Client *self)
{
g_assert(focus_client == self);
- g_print("UNFocusing: %lx\n", self->window);
focus_set_client(NULL);
}
static void events(ObEvent *e, void *foo)
{
- g_message("event %d", e->type);
switch (e->type) {
case Event_Client_Mapped:
if (focus_new && client_normal(e->data.c.client))
--skip_enter;
}
else*/
- if (e->data.x.client != NULL && client_normal(e->data.x.client)) {
+ if (e->data.x.client != NULL && client_normal(e->data.x.client))
client_focus(e->data.x.client);
- g_message("enter %lx", e->data.x.client->window);
- }
break;
default: