summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-03 22:06:17 +0000
committerDana Jansens <danakj@orodu.net>2003-09-03 22:06:17 +0000
commitc20a8d986a3a87dd345bede8e3b6c08e39a89485 (patch)
tree8893bf7b96a4212f582bd1e82e395f707d98ae91 /openbox
parentb2a0df8e89b3f4bbedd8c648778042e079a1cb13 (diff)
handle the case where a transient is a child of a dockapp
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index c6f43063..75aecf41 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -812,7 +812,11 @@ void client_update_transient_for(ObClient *self)
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