all repos — openbox @ 33cc5724028121753bfc6e4fc51f3027864f9678

openbox fork - make it a bit more like ryudo

drop some wasted client_validates.
Dana Jansens danakj@orodu.net
commit

33cc5724028121753bfc6e4fc51f3027864f9678

parent

d20f84f5ded581c57df5904c6fa550dac05ad036

5 files changed, 7 insertions(+), 17 deletions(-)

jump to
M openbox/action.copenbox/action.c

@@ -1166,8 +1166,7 @@ /* if using focus_delay, stop the timer now so that focus doesn't go

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); } }
M openbox/client.copenbox/client.c

@@ -2963,11 +2963,6 @@ {

/* 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 */
M openbox/event.copenbox/event.c

@@ -1320,11 +1320,8 @@ {

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 */ }
M openbox/focus.copenbox/focus.c

@@ -212,8 +212,7 @@ if (config_focus_follow && !config_focus_last)

{ 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; }

@@ -254,8 +253,8 @@ 5. it is a normal type window, don't fall back onto a dock or

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");
M openbox/screen.copenbox/screen.c

@@ -882,7 +882,7 @@ for (it = focus_order; it; it = g_list_next(it)) {

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 {