moving on us */
event_halt_focus_delay();
- if (client_validate(data->client.any.c))
- client_focus(data->client.any.c);
+ client_focus(data->client.any.c);
}
}
/* choose the correct target */
self = client_focus_target(self);
-#if 0
- if (!client_validate(self))
- return FALSE;
-#endif
-
if (!client_can_focus(self)) {
if (!self->frame->visible) {
/* update the focus lists */
ObClient *c = data;
if (focus_client != c) {
- if (client_validate(c)) {
- client_focus(c);
- if (config_focus_raise)
- client_raise(c);
- }
+ if (client_focus(c) && config_focus_raise)
+ client_raise(c);
}
return FALSE; /* no repeat */
}
{
if ((target = client_under_pointer()))
if (allow_refocus || target != old)
- if (client_normal(target) && client_can_focus(target) &&
- client_validate(target)) {
+ if (client_normal(target) && client_can_focus(target)) {
ob_debug("found in pointer stuff\n");
return target;
}
a splashscreen or a desktop window (save the desktop as a
backup fallback though)
*/
- if (client_can_focus(c) && client_validate(c) &&
- c->desktop == screen_desktop && !c->iconic)
+ if (client_can_focus(c) && c->desktop == screen_desktop &&
+ !c->iconic)
{
if (client_normal(c)) {
ob_debug("found in focus order\n");
ObClient *c = it->data;
if (c->type == OB_CLIENT_TYPE_DESKTOP &&
(c->desktop == screen_desktop || c->desktop == DESKTOP_ALL) &&
- client_validate(it->data) && client_focus(it->data))
+ client_focus(it->data))
break;
}
} else {