all repos — openbox @ a9910e520b1e5a7020ca8df0f2a7d0d0d48e2857

openbox fork - make it a bit more like ryudo

always unfocus the window when it disappears, no special cases.. (except unmanage)
Dana Jansens danakj@orodu.net
commit

a9910e520b1e5a7020ca8df0f2a7d0d0d48e2857

parent

270a5b25df8db500f94a7c29430ebc224ddf18b2

1 files changed, 6 insertions(+), 5 deletions(-)

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

@@ -2121,8 +2121,13 @@ if (client_should_show(self)) {

if (!self->frame->visible) frame_show(self->frame); } - else if (self->frame->visible) + else if (self->frame->visible) { frame_hide(self->frame); + + /* Fall back focus since we're disappearing */ + if (focus_client == self) + client_unfocus(self); + } /* According to the ICCCM (sec 4.1.3.1) when a window is not visible, it needs to be in IconicState. This includes when it is on another

@@ -2504,10 +2509,6 @@ /* update the focus lists.. iconic windows go to the bottom of

the list, put the new iconic window at the 'top of the bottom'. */ focus_order_to_top(self); - - /* Fall back focus since we're disappearing */ - if (focus_client == self) - client_unfocus(self); changed = TRUE; }