forked from enlightenment/enlightenment
Make illume-home focus any apps it starts.
Make Prev button work in softkey so we can traverse the running apps. SVN revision: 44202
This commit is contained in:
parent
781568dc46
commit
90823471a2
|
@ -492,6 +492,8 @@ _il_home_desktop_run(Efreet_Desktop *desktop)
|
|||
bd->client.netwm.startup_id) == desktop)
|
||||
{
|
||||
e_border_show(bd);
|
||||
e_border_raise(bd);
|
||||
e_border_focus_set(bd, 1, 1);
|
||||
if (exe) free(exe);
|
||||
return;
|
||||
}
|
||||
|
@ -506,6 +508,8 @@ _il_home_desktop_run(Efreet_Desktop *desktop)
|
|||
if (!strcmp(exe, pp))
|
||||
{
|
||||
e_border_show(bd);
|
||||
e_border_raise(bd);
|
||||
e_border_focus_set(bd, 1, 1);
|
||||
if (exe) free(exe);
|
||||
return;
|
||||
}
|
||||
|
@ -514,6 +518,8 @@ _il_home_desktop_run(Efreet_Desktop *desktop)
|
|||
(!strcasecmp(bd->client.icccm.name, exe)))
|
||||
{
|
||||
e_border_show(bd);
|
||||
e_border_raise(bd);
|
||||
e_border_focus_set(bd, 1, 1);
|
||||
if (exe) free(exe);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -105,10 +105,33 @@ static void
|
|||
_il_sk_win_cb_back_click(void *data, void *data2)
|
||||
{
|
||||
Il_Sk_Win *swin;
|
||||
E_Border *bd;
|
||||
E_Border *bd, *fbd;
|
||||
Eina_List *focused, *l;
|
||||
|
||||
if (!(swin = data)) return;
|
||||
if (!(bd = e_border_focused_get())) return;
|
||||
focused = e_border_focus_stack_get();
|
||||
EINA_LIST_REVERSE_FOREACH(focused, l, fbd)
|
||||
{
|
||||
E_Border *fb;
|
||||
|
||||
if (e_object_is_del(E_OBJECT(fbd))) continue;
|
||||
if ((!fbd->client.icccm.accepts_focus) &&
|
||||
(!fbd->client.icccm.take_focus)) continue;
|
||||
if (fbd->client.netwm.state.skip_taskbar) continue;
|
||||
if (fbd == bd)
|
||||
{
|
||||
if (!(fb = focused->next->data)) continue;
|
||||
if (e_object_is_del(E_OBJECT(fb))) continue;
|
||||
if ((!fb->client.icccm.accepts_focus) &&
|
||||
(!fb->client.icccm.take_focus)) continue;
|
||||
if (fb->client.netwm.state.skip_taskbar) continue;
|
||||
printf("Have Focused Border: %s\n", fb->client.icccm.class);
|
||||
e_border_raise(fb);
|
||||
e_border_focus_set(fb, 1, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue