all repos — openbox @ c20a8d986a3a87dd345bede8e3b6c08e39a89485

openbox fork - make it a bit more like ryudo

handle the case where a transient is a child of a dockapp
Dana Jansens danakj@orodu.net
commit

c20a8d986a3a87dd345bede8e3b6c08e39a89485

parent

b2a0df8e89b3f4bbedd8c648778042e079a1cb13

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

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

@@ -812,7 +812,11 @@ if (t != self->window) { /* cant be transient to itself! */

target = g_hash_table_lookup(window_map, &t); /* if this happens then we need to check for it*/ g_assert(target != self); - g_assert(!target || WINDOW_IS_CLIENT(target)); + if (target && !WINDOW_IS_CLIENT(target)) { + /* this can happen when a dialog is a child of + a dockapp, for example */ + target = NULL; + } if (!target && self->group) { /* not transient to a client, see if it is transient for a