all repos — openbox @ 5cac540f560313cc5fde6d6d710dc500fd03f97a

openbox fork - make it a bit more like ryudo

add to teh focus order before the call to change_state, since this can remove/add to the focus order, and then we're in there twice
Dana Jansens danakj@orodu.net
commit

5cac540f560313cc5fde6d6d710dc500fd03f97a

parent

2aa5cd3574b2bbdc103cb7626aa1ff77ea2c0046

1 files changed, 4 insertions(+), 3 deletions(-)

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

@@ -269,6 +269,10 @@ client_restore_session_state(self);

sn_app_started(self->class); + /* update the focus lists, do this before the call to change_state or + it can end up in the list twice! */ + focus_order_add_new(self); + client_change_state(self); /* remove the client's border (and adjust re gravity) */

@@ -286,9 +290,6 @@

grab_server(FALSE); client_apply_startup_state(self); - - /* update the focus lists */ - focus_order_add_new(self); stacking_add(CLIENT_AS_WINDOW(self)); client_restore_session_stacking(self);