From f08d02f9abf6d9b51634a2aebe53cf6fec86550e Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 19 Apr 2010 23:40:48 +0000 Subject: [PATCH] If a transient gets closed, focus it's parent (fixes keybinding dialog issue). SVN revision: 48152 --- src/modules/illume2/policies/illume/policy.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/modules/illume2/policies/illume/policy.c b/src/modules/illume2/policies/illume/policy.c index f6c9c09e7..87e7bf46d 100644 --- a/src/modules/illume2/policies/illume/policy.c +++ b/src/modules/illume2/policies/illume/policy.c @@ -179,7 +179,18 @@ _policy_border_show_below(E_Border *bd) int pos = 0, i; // printf("Show Borders Below: %s %d %d\n", -// bd->client.icccm.name, bd->x, bd->y); +// bd->client.icccm.class, bd->x, bd->y); + + if (bd->client.icccm.transient_for) + { + E_Border *trans; + + if (trans = e_border_find_by_client_window(bd->client.icccm.transient_for)) + { + _policy_border_set_focus(trans); + return; + } + } /* determine layering position */ if (bd->layer <= 0) pos = 0;