From d591d6caf32c3bd1fa805410189ed5d0a494e0ee Mon Sep 17 00:00:00 2001 From: stffrdhrn Date: Tue, 12 Jul 2005 15:22:43 +0000 Subject: [PATCH] Some more config values (2 for focus, 2 for move/resize dialog) SVN revision: 15748 --- src/bin/e_config.c | 9 +- src/bin/e_ipc_handlers.h | 165 ++++++++++++++++++++++++++++++++++ src/bin/e_ipc_handlers_list.h | 12 +++ 3 files changed, 182 insertions(+), 4 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index ff06c5f77..fe08abea3 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -244,10 +244,10 @@ e_config_init(void) E_CONFIG_VAL(D, T, transition_desk, STR); /**/ E_CONFIG_VAL(D, T, transition_change, STR); /**/ E_CONFIG_LIST(D, T, remembers, _e_config_remember_edd); - E_CONFIG_VAL(D, T, move_info_follows, INT); - E_CONFIG_VAL(D, T, resize_info_follows, INT); - E_CONFIG_VAL(D, T, focus_last_focused_per_desktop, INT); - E_CONFIG_VAL(D, T, focus_revert_on_hide_or_close, INT); + E_CONFIG_VAL(D, T, move_info_follows, INT); /**/ + E_CONFIG_VAL(D, T, resize_info_follows, INT); /**/ + E_CONFIG_VAL(D, T, focus_last_focused_per_desktop, INT); /**/ + E_CONFIG_VAL(D, T, focus_revert_on_hide_or_close, INT); /**/ e_config = e_config_domain_load("e", _e_config_edd); if (e_config) @@ -907,6 +907,7 @@ e_config_shutdown(void) E_CONFIG_DD_FREE(_e_config_bindings_key_edd); E_CONFIG_DD_FREE(_e_config_path_append_edd); E_CONFIG_DD_FREE(_e_config_desktop_bg_edd); + E_CONFIG_DD_FREE(_e_config_remember_edd); return 1; } diff --git a/src/bin/e_ipc_handlers.h b/src/bin/e_ipc_handlers.h index d30f17dbb..6ff315701 100644 --- a/src/bin/e_ipc_handlers.h +++ b/src/bin/e_ipc_handlers.h @@ -4210,6 +4210,171 @@ break; /****************************************************************************/ +#define HDL E_IPC_OP_MOVE_INFO_FOLLOWS_SET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-move-info-follows-set", 1, "Set whether the move dialog should follow the client window", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_INT(atoi(params[0]), HDL); +#elif (TYPE == E_WM_IN) + START_INT(val, HDL); + e_config->move_info_follows = val; + E_CONFIG_LIMIT(e_config->move_info_follows, 0, 1); + SAVE; + END_INT; +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_MOVE_INFO_FOLLOWS_GET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-move-info-follows-get", 0, "Get whether the move dialog should follow the client window", 1, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + SEND_INT(e_config->move_info_follows, E_IPC_OP_MOVE_INFO_FOLLOWS_GET_REPLY, HDL); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_MOVE_INFO_FOLLOWS_GET_REPLY +#if (TYPE == E_REMOTE_OPTIONS) +#elif (TYPE == E_REMOTE_OUT) +#elif (TYPE == E_WM_IN) +#elif (TYPE == E_REMOTE_IN) + START_INT(val, HDL); + printf("REPLY: %d\n", val); + END_INT; +#endif +#undef HDL + +/****************************************************************************/ + +#define HDL E_IPC_OP_RESIZE_INFO_FOLLOWS_SET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-resize-info-follows-set", 1, "Set whether the resize dialog should follow the client window", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_INT(atoi(params[0]), HDL); +#elif (TYPE == E_WM_IN) + START_INT(val, HDL); + e_config->resize_info_follows = val; + E_CONFIG_LIMIT(e_config->resize_info_follows, 0, 1); + SAVE; + END_INT; +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_RESIZE_INFO_FOLLOWS_GET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-resize-info-follows-get", 0, "Set whether the resize dialog should follow the client window", 1, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + SEND_INT(e_config->resize_info_follows, E_IPC_OP_RESIZE_INFO_FOLLOWS_GET_REPLY, HDL); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_RESIZE_INFO_FOLLOWS_GET_REPLY +#if (TYPE == E_REMOTE_OPTIONS) +#elif (TYPE == E_REMOTE_OUT) +#elif (TYPE == E_WM_IN) +#elif (TYPE == E_REMOTE_IN) + START_INT(val, HDL); + printf("REPLY: %d\n", val); + END_INT; +#endif +#undef HDL + +/****************************************************************************/ + +#define HDL E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_SET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-focus-last-focused-per-desktop-set", 1, "Set whether E should remember focused windows when switching desks", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_INT(atoi(params[0]), HDL); +#elif (TYPE == E_WM_IN) + START_INT(val, HDL); + e_config->focus_last_focused_per_desktop = val; + E_CONFIG_LIMIT(e_config->focus_last_focused_per_desktop, 0, 1); + SAVE; + END_INT; +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_GET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-focus-last-focused-per-desktop-get", 0, "Get whether E should remember focused windows when switching desks", 1, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + SEND_INT(e_config->focus_last_focused_per_desktop, E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_GET_REPLY, HDL); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_GET_REPLY +#if (TYPE == E_REMOTE_OPTIONS) +#elif (TYPE == E_REMOTE_OUT) +#elif (TYPE == E_WM_IN) +#elif (TYPE == E_REMOTE_IN) + START_INT(val, HDL); + printf("REPLY: %d\n", val); + END_INT; +#endif +#undef HDL + +/****************************************************************************/ + +#define HDL E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_SET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-focus-revert-on-hide-or-close-set", 1, "Set whether E will focus the last focused window when you hide or close a focused window", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_INT(atoi(params[0]), HDL); +#elif (TYPE == E_WM_IN) + START_INT(val, HDL); + e_config->focus_revert_on_hide_or_close = val; + E_CONFIG_LIMIT(e_config->focus_revert_on_hide_or_close, 0, 1); + SAVE; + END_INT; +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-focus-revert-on-hide-or-close-get", 0, "Get whether E will focus the last focused window when you hide or close a focused window", 1, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + SEND_INT(e_config->focus_revert_on_hide_or_close, E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET_REPLY, HDL); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET_REPLY +#if (TYPE == E_REMOTE_OPTIONS) +#elif (TYPE == E_REMOTE_OUT) +#elif (TYPE == E_WM_IN) +#elif (TYPE == E_REMOTE_IN) + START_INT(val, HDL); + printf("REPLY: %d\n", val); + END_INT; +#endif +#undef HDL + +/****************************************************************************/ + + #if 0 } #endif diff --git a/src/bin/e_ipc_handlers_list.h b/src/bin/e_ipc_handlers_list.h index 77f06b43d..6a5ab54d8 100644 --- a/src/bin/e_ipc_handlers_list.h +++ b/src/bin/e_ipc_handlers_list.h @@ -203,3 +203,15 @@ #define E_IPC_OP_THEME_GET_REPLY 203 #define E_IPC_OP_THEME_REMOVE 204 #define E_IPC_OP_THEME_SET 205 +#define E_IPC_OP_MOVE_INFO_FOLLOWS_SET 206 +#define E_IPC_OP_MOVE_INFO_FOLLOWS_GET 207 +#define E_IPC_OP_MOVE_INFO_FOLLOWS_GET_REPLY 208 +#define E_IPC_OP_RESIZE_INFO_FOLLOWS_SET 209 +#define E_IPC_OP_RESIZE_INFO_FOLLOWS_GET 210 +#define E_IPC_OP_RESIZE_INFO_FOLLOWS_GET_REPLY 211 +#define E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_SET 212 +#define E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_GET 213 +#define E_IPC_OP_FOCUS_LAST_FOCUSED_PER_DESKTOP_GET_REPLY 214 +#define E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_SET 215 +#define E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET 216 +#define E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET_REPLY 217