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 E_Remember *_e_remember_find(E_Border *bd, int check_usable);
|
||||
|
||||
|
||||
/* FIXME: match netwm window type */
|
||||
|
||||
/* local subsystem globals */
|
||||
|
||||
/* externally accessible functions */
|
||||
|
||||
EAPI int
|
||||
e_remember_init(E_Startup_Mode mode)
|
||||
{
|
||||
|
@ -31,12 +29,8 @@ e_remember_init(E_Startup_Mode mode)
|
|||
E_Remember *rem;
|
||||
|
||||
rem = l->data;
|
||||
if ((rem->apply & E_REMEMBER_APPLY_RUN) &&
|
||||
(rem->prop.command))
|
||||
{
|
||||
printf("REMEMBER CMD: \"%s\"\n", rem->prop.command);
|
||||
e_util_head_exec(rem->prop.head, rem->prop.command);
|
||||
}
|
||||
if ((rem->apply & E_REMEMBER_APPLY_RUN) && (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);
|
||||
}
|
||||
|
||||
|
||||
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))))
|
||||
matches++;
|
||||
if ((matches >= required_matches) && (!rem->delete_me))
|
||||
return rem;
|
||||
return rem;
|
||||
}
|
||||
return NULL;
|
||||
#endif
|
||||
|
|
|
@ -42,54 +42,49 @@ struct _E_Remember
|
|||
unsigned char transient;
|
||||
int apply;
|
||||
int max_score;
|
||||
struct {
|
||||
int pos_x, pos_y;
|
||||
int res_x, res_y;
|
||||
int pos_w, pos_h;
|
||||
struct
|
||||
{
|
||||
int pos_x, pos_y;
|
||||
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 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;
|
||||
unsigned char sticky;
|
||||
unsigned char shaded;
|
||||
unsigned char skip_winlist;
|
||||
|
||||
const char *border;
|
||||
|
||||
unsigned char sticky;
|
||||
|
||||
unsigned char shaded;
|
||||
|
||||
unsigned char skip_winlist;
|
||||
|
||||
int desk_x, desk_y;
|
||||
|
||||
int zone;
|
||||
|
||||
int head;
|
||||
const char *command;
|
||||
} prop;
|
||||
int desk_x, desk_y;
|
||||
int zone;
|
||||
int head;
|
||||
const char *command;
|
||||
} prop;
|
||||
};
|
||||
|
||||
EAPI int e_remember_init(E_Startup_Mode mode);
|
||||
|
|
Loading…
Reference in New Issue