Winlist options, thanks to Frederick Reeve
SVN revision: 17006
This commit is contained in:
parent
3a1853a51b
commit
4f373a3df9
|
@ -308,6 +308,8 @@ e_config_init(void)
|
|||
E_CONFIG_VAL(D, T, winlist_list_show_other_screen_windows, INT); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_list_uncover_while_selecting, INT); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_list_jump_desk_while_selecting, INT); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_list_focus_while_selecting, INT); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_list_raise_while_selecting, INT); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_pos_align_x, DOUBLE); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_pos_align_y, DOUBLE); /**/
|
||||
E_CONFIG_VAL(D, T, winlist_pos_size_w, DOUBLE); /**/
|
||||
|
@ -430,6 +432,8 @@ e_config_init(void)
|
|||
e_config->winlist_list_show_other_screen_windows = 0;
|
||||
e_config->winlist_list_uncover_while_selecting = 0;
|
||||
e_config->winlist_list_jump_desk_while_selecting = 0;
|
||||
e_config->winlist_list_focus_while_selecting = 1;
|
||||
e_config->winlist_list_raise_while_selecting = 1;
|
||||
e_config->winlist_pos_align_x = 0.5;
|
||||
e_config->winlist_pos_align_y = 0.5;
|
||||
e_config->winlist_pos_size_w = 0.5;
|
||||
|
|
|
@ -50,7 +50,7 @@ typedef Eet_Data_Descriptor E_Config_DD;
|
|||
* defaults for e to work - started at 100 when we introduced this config
|
||||
* versioning feature
|
||||
*/
|
||||
#define E_CONFIG_FILE_VERSION 125
|
||||
#define E_CONFIG_FILE_VERSION 126
|
||||
|
||||
#define E_EVAS_ENGINE_DEFAULT 0
|
||||
#define E_EVAS_ENGINE_SOFTWARE_X11 1
|
||||
|
@ -126,6 +126,8 @@ struct _E_Config
|
|||
int winlist_list_show_other_screen_windows;
|
||||
int winlist_list_uncover_while_selecting;
|
||||
int winlist_list_jump_desk_while_selecting;
|
||||
int winlist_list_focus_while_selecting;
|
||||
int winlist_list_raise_while_selecting;
|
||||
double winlist_pos_align_x;
|
||||
double winlist_pos_align_y;
|
||||
double winlist_pos_size_w;
|
||||
|
|
|
@ -4847,11 +4847,7 @@ break;
|
|||
profiles = e_config_profile_list();
|
||||
ENCODE(profiles, e_ipc_codec_str_list_enc);
|
||||
SEND_DATA(E_IPC_OP_PROFILE_LIST_REPLY);
|
||||
while (profiles)
|
||||
{
|
||||
free(profiles->data);
|
||||
profiles = evas_list_remove_list(profiles, profiles);
|
||||
}
|
||||
FREE_LIST(profiles);
|
||||
END_GENERIC();
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
|
@ -6143,3 +6139,86 @@ break;
|
|||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#define HDL E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_SET
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
OP("-winlist-list-focus-while-selecting-set", 1, "Set winlist (alt+tab) focus while selecting policy", 0, HDL)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_INT(atoi(params[0]), HDL);
|
||||
#elif (TYPE == E_WM_IN)
|
||||
START_INT(policy, HDL);
|
||||
e_config->winlist_list_focus_while_selecting = policy;
|
||||
E_CONFIG_LIMIT(e_config->winlist_list_focus_while_selecting, 0, 1);
|
||||
SAVE;
|
||||
END_INT;
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_GET
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
OP("-winlist-list-focus-while-selecting-get", 0, "Get winlist (alt+tab) focus while selecting policy", 1, HDL)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_NULL(HDL);
|
||||
#elif (TYPE == E_WM_IN)
|
||||
SEND_INT(e_config->winlist_list_focus_while_selecting, E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_GET_REPLY, HDL);
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_GET_REPLY
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
#elif (TYPE == E_WM_IN)
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
START_INT(policy, HDL);
|
||||
printf("REPLY: POLICY=%d\n", policy);
|
||||
END_INT;
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#define HDL E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_SET
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
OP("-winlist-list-raise-while-selecting-set", 1, "Set winlist (alt+tab) raise while selecting policy", 0, HDL)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_INT(atoi(params[0]), HDL);
|
||||
#elif (TYPE == E_WM_IN)
|
||||
START_INT(policy, HDL);
|
||||
e_config->winlist_list_raise_while_selecting = policy;
|
||||
E_CONFIG_LIMIT(e_config->winlist_list_raise_while_selecting, 0, 1);
|
||||
SAVE;
|
||||
END_INT;
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_GET
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
OP("-winlist-list-raise-while-selecting-get", 0, "Get winlist (alt+tab) raise while selecting policy", 1, HDL)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_NULL(HDL);
|
||||
#elif (TYPE == E_WM_IN)
|
||||
SEND_INT(e_config->winlist_list_raise_while_selecting, E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_GET_REPLY, HDL);
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_GET_REPLY
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
#elif (TYPE == E_WM_IN)
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
START_INT(policy, HDL);
|
||||
printf("REPLY: POLICY=%d\n", policy);
|
||||
END_INT;
|
||||
#endif
|
||||
#undef HDL
|
||||
|
|
|
@ -290,3 +290,10 @@
|
|||
|
||||
#define E_IPC_OP_PROFILE_LIST 282
|
||||
#define E_IPC_OP_PROFILE_LIST_REPLY 283
|
||||
|
||||
#define E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_SET 284
|
||||
#define E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_GET 285
|
||||
#define E_IPC_OP_WINLIST_LIST_FOCUS_WHILE_SELECTING_GET_REPLY 286
|
||||
#define E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_SET 287
|
||||
#define E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_GET 288
|
||||
#define E_IPC_OP_WINLIST_LIST_RAISE_WHILE_SELECTING_GET_REPLY 289
|
||||
|
|
|
@ -553,9 +553,9 @@ _e_winlist_activate(void)
|
|||
if (!animator)
|
||||
animator = ecore_animator_add(_e_winlist_animator, NULL);
|
||||
}
|
||||
if (!ww->border->lock_user_stacking)
|
||||
if ((!ww->border->lock_user_stacking) && (e_config->winlist_list_raise_while_selecting))
|
||||
e_border_raise(ww->border);
|
||||
if (!ww->border->lock_focus_out)
|
||||
if ((!ww->border->lock_focus_out) && (e_config->winlist_list_focus_while_selecting))
|
||||
e_border_focus_set(ww->border, 1, 1);
|
||||
}
|
||||
edje_object_part_text_set(bg_object, "title_text", e_border_name_get(ww->border));
|
||||
|
|
Loading…
Reference in New Issue