From: Christopher Michael Date: Mon, 19 Apr 2010 23:40:48 +0000 (+0000) Subject: If a transient gets closed, focus it's parent (fixes keybinding dialog issue). X-Git-Tag: submit/efl/20131021.015651~7754 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f08d02f9abf6d9b51634a2aebe53cf6fec86550e;p=platform%2Fupstream%2Fenlightenment.git If a transient gets closed, focus it's parent (fixes keybinding dialog issue). SVN revision: 48152 --- diff --git a/src/modules/illume2/policies/illume/policy.c b/src/modules/illume2/policies/illume/policy.c index f6c9c09..87e7bf4 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;