If a transient gets closed, focus it's parent (fixes keybinding dialog issue).

SVN revision: 48152
This commit is contained in:
Christopher Michael 2010-04-19 23:40:48 +00:00
parent a0a04c0e09
commit f08d02f9ab
1 changed files with 12 additions and 1 deletions

View File

@ -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;