Focus modal windows if any group member is focused.

SVN revision: 23370
This commit is contained in:
sebastid 2006-06-10 22:05:50 +00:00 committed by sebastid
parent aec7cc719f
commit 99b37daf82
2 changed files with 24 additions and 2 deletions

View File

@ -7,10 +7,8 @@
#include "config.h"
#define USE_IPC
/*
#define OBJECT_PARANOIA_CHECK
#define OBJECT_CHECK
*/
#include <stdio.h>
#include <stdlib.h>

View File

@ -4551,6 +4551,18 @@ _e_border_eval(E_Border *bd)
bd->leader->modal = bd;
if (bd->leader->focused)
e_border_focus_set(bd, 1, 1);
else
{
Evas_List *l;
for (l = bd->leader->group; l; l = l->next)
{
E_Border *child;
child = l->data;
if ((child != bd) && (child->focused))
e_border_focus_set(bd, 1, 1);
}
}
}
}
bd->client.icccm.fetch.client_leader = 0;
@ -4998,6 +5010,18 @@ _e_border_eval(E_Border *bd)
bd->leader->modal = bd;
if (bd->leader->focused)
e_border_focus_set(bd, 1, 1);
else
{
Evas_List *l;
for (l = bd->leader->group; l; l = l->next)
{
E_Border *child;
child = l->data;
if ((child != bd) && (child->focused))
e_border_focus_set(bd, 1, 1);
}
}
}
}
bd->client.netwm.update.state = 0;