forked from enlightenment/enlightenment
parent
b41938517c
commit
92476eb25c
|
@ -11,13 +11,11 @@ static void _e_remember_free(E_Remember *rem);
|
||||||
static int _e_remember_sort_list(void * d1, void * d2);
|
static int _e_remember_sort_list(void * d1, void * d2);
|
||||||
static E_Remember *_e_remember_find(E_Border *bd, int check_usable);
|
static E_Remember *_e_remember_find(E_Border *bd, int check_usable);
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: match netwm window type */
|
/* FIXME: match netwm window type */
|
||||||
|
|
||||||
/* local subsystem globals */
|
/* local subsystem globals */
|
||||||
|
|
||||||
/* externally accessible functions */
|
/* externally accessible functions */
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
e_remember_init(E_Startup_Mode mode)
|
e_remember_init(E_Startup_Mode mode)
|
||||||
{
|
{
|
||||||
|
@ -31,12 +29,8 @@ e_remember_init(E_Startup_Mode mode)
|
||||||
E_Remember *rem;
|
E_Remember *rem;
|
||||||
|
|
||||||
rem = l->data;
|
rem = l->data;
|
||||||
if ((rem->apply & E_REMEMBER_APPLY_RUN) &&
|
if ((rem->apply & E_REMEMBER_APPLY_RUN) && (rem->prop.command))
|
||||||
(rem->prop.command))
|
e_util_head_exec(rem->prop.head, rem->prop.command);
|
||||||
{
|
|
||||||
printf("REMEMBER CMD: \"%s\"\n", rem->prop.command);
|
|
||||||
e_util_head_exec(rem->prop.head, rem->prop.command);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,7 +336,6 @@ e_remember_update(E_Remember *rem, E_Border *bd)
|
||||||
rem->prop.command = evas_stringshare_add(buf);
|
rem->prop.command = evas_stringshare_add(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
e_config_save_queue();
|
e_config_save_queue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,7 +390,7 @@ _e_remember_find(E_Border *bd, int check_usable)
|
||||||
((!rem->transient) && (bd->client.icccm.transient_for == 0))))
|
((!rem->transient) && (bd->client.icccm.transient_for == 0))))
|
||||||
matches++;
|
matches++;
|
||||||
if ((matches >= required_matches) && (!rem->delete_me))
|
if ((matches >= required_matches) && (!rem->delete_me))
|
||||||
return rem;
|
return rem;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -42,54 +42,49 @@ struct _E_Remember
|
||||||
unsigned char transient;
|
unsigned char transient;
|
||||||
int apply;
|
int apply;
|
||||||
int max_score;
|
int max_score;
|
||||||
struct {
|
struct
|
||||||
int pos_x, pos_y;
|
{
|
||||||
int res_x, res_y;
|
int pos_x, pos_y;
|
||||||
int pos_w, pos_h;
|
int res_x, res_y;
|
||||||
|
int pos_w, pos_h;
|
||||||
|
int w, h;
|
||||||
|
int layer;
|
||||||
|
|
||||||
int w, h;
|
unsigned char lock_user_location;
|
||||||
|
unsigned char lock_client_location;
|
||||||
|
unsigned char lock_user_size;
|
||||||
|
unsigned char lock_client_size;
|
||||||
|
unsigned char lock_user_stacking;
|
||||||
|
unsigned char lock_client_stacking;
|
||||||
|
unsigned char lock_user_iconify;
|
||||||
|
unsigned char lock_client_iconify;
|
||||||
|
unsigned char lock_user_desk;
|
||||||
|
unsigned char lock_client_desk;
|
||||||
|
unsigned char lock_user_sticky;
|
||||||
|
unsigned char lock_client_sticky;
|
||||||
|
unsigned char lock_user_shade;
|
||||||
|
unsigned char lock_client_shade;
|
||||||
|
unsigned char lock_user_maximize;
|
||||||
|
unsigned char lock_client_maximize;
|
||||||
|
unsigned char lock_user_fullscreen;
|
||||||
|
unsigned char lock_client_fullscreen;
|
||||||
|
unsigned char lock_border;
|
||||||
|
unsigned char lock_close;
|
||||||
|
unsigned char lock_focus_in;
|
||||||
|
unsigned char lock_focus_out;
|
||||||
|
unsigned char lock_life;
|
||||||
|
|
||||||
int layer;
|
const char *border;
|
||||||
|
|
||||||
unsigned char lock_user_location;
|
unsigned char sticky;
|
||||||
unsigned char lock_client_location;
|
unsigned char shaded;
|
||||||
unsigned char lock_user_size;
|
unsigned char skip_winlist;
|
||||||
unsigned char lock_client_size;
|
|
||||||
unsigned char lock_user_stacking;
|
|
||||||
unsigned char lock_client_stacking;
|
|
||||||
unsigned char lock_user_iconify;
|
|
||||||
unsigned char lock_client_iconify;
|
|
||||||
unsigned char lock_user_desk;
|
|
||||||
unsigned char lock_client_desk;
|
|
||||||
unsigned char lock_user_sticky;
|
|
||||||
unsigned char lock_client_sticky;
|
|
||||||
unsigned char lock_user_shade;
|
|
||||||
unsigned char lock_client_shade;
|
|
||||||
unsigned char lock_user_maximize;
|
|
||||||
unsigned char lock_client_maximize;
|
|
||||||
unsigned char lock_user_fullscreen;
|
|
||||||
unsigned char lock_client_fullscreen;
|
|
||||||
unsigned char lock_border;
|
|
||||||
unsigned char lock_close;
|
|
||||||
unsigned char lock_focus_in;
|
|
||||||
unsigned char lock_focus_out;
|
|
||||||
unsigned char lock_life;
|
|
||||||
|
|
||||||
const char *border;
|
int desk_x, desk_y;
|
||||||
|
int zone;
|
||||||
unsigned char sticky;
|
int head;
|
||||||
|
const char *command;
|
||||||
unsigned char shaded;
|
} prop;
|
||||||
|
|
||||||
unsigned char skip_winlist;
|
|
||||||
|
|
||||||
int desk_x, desk_y;
|
|
||||||
|
|
||||||
int zone;
|
|
||||||
|
|
||||||
int head;
|
|
||||||
const char *command;
|
|
||||||
} prop;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
EAPI int e_remember_init(E_Startup_Mode mode);
|
EAPI int e_remember_init(E_Startup_Mode mode);
|
||||||
|
|
Loading…
Reference in New Issue