add E_Exec_Instance to E_Border and vice versa

devs/sachiel/e19
discomfitor 10 years ago
parent 4bbafeebb3
commit d8dc6df8c4
  1. 8
      src/bin/e_border.c
  2. 1
      src/bin/e_border.h
  3. 1
      src/bin/e_exec.h

@ -4919,6 +4919,12 @@ _e_border_del(E_Border *bd)
focus_next = eina_list_remove(focus_next, bd);
bd->changed = 0;
if (bd->exe_inst)
{
bd->exe_inst->bd = NULL;
bd->exe_inst = NULL;
}
if (bd->fullscreen) bd->desk->fullscreen_borders--;
if (bd->moving) e_border_act_move_end(bd, NULL);
@ -7968,6 +7974,8 @@ _e_border_eval0(E_Border *bd)
desk = e_desk_at_xy_get(bd->zone, inst->desk_x,
inst->desk_y);
if (desk) e_border_desk_set(bd, desk);
inst->bd = bd;
bd->exe_inst = inst;
e_exec_instance_found(inst);
}

@ -647,6 +647,7 @@ struct _E_Border
Eina_List *transients;
Efreet_Desktop *desktop;
E_Exec_Instance *exe_inst;
unsigned char comp_hidden : 1;

@ -9,6 +9,7 @@ typedef struct _E_Exec_Instance E_Exec_Instance;
struct _E_Exec_Instance
{
Efreet_Desktop *desktop;
E_Border *bd;
const char *key;
Ecore_Exe *exe;
int startup_id;

Loading…
Cancel
Save