all repos — openbox @ fc32577766755a84ac883b4d862fab3c5e681642

openbox fork - make it a bit more like ryudo

fallback focus while unmanaging the window
Dana Jansens danakj@orodu.net
commit

fc32577766755a84ac883b4d862fab3c5e681642

parent

8a30fa25a0af0c8413d43c5ef7aa4087d1068998

1 files changed, 7 insertions(+), 2 deletions(-)

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

@@ -182,6 +182,7 @@ }

XFree(wmhint); } */ + g_message("Managing window: %lx", window); /* choose the events we want to receive on the CLIENT window */ attrib_set.event_mask = CLIENT_EVENTMASK;

@@ -245,7 +246,7 @@

/* make sure the window is visible */ client_move_onscreen(self); -/* g_message("Managed window 0x%lx", window);*/ + g_message("Managed window 0x%lx", window); } void client_unmanage_all()

@@ -260,7 +261,7 @@ guint i;

int j; GSList *it; -/* g_message("Unmanaging window: %lx", self->window);*/ + g_message("Unmanaging window: %lx", self->window); dispatch_client(Event_Client_Destroy, self, 0, 0); g_assert(self != NULL);

@@ -311,6 +312,8 @@ client_calc_layer(it->data);

} } + focus_fallback(FALSE); + /* remove from its group */ if (self->group) { group_remove(self->group, self);

@@ -339,6 +342,8 @@ bad, since we will no longer be managing the window on restart */

if (self->iconic) XMapWindow(ob_display, self->window); } + + g_message("Unmanaged window 0x%lx", self->window); /* free all data allocated in the client struct */ g_slist_free(self->transients);