From 4e14888e73e612b068a2c64a0c328fd0deb75fba Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 11 Nov 2007 16:48:19 +0100 Subject: [PATCH] use a more generic mouse_opt --- config.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 5662c8551..e79e5597f 100644 --- a/config.c +++ b/config.c @@ -268,14 +268,7 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf) CFG_STR((char *) "button", (char *) "None", CFGF_NONE), CFG_STR((char *) "command", (char *) "", CFGF_NONE), }; - static cfg_opt_t mouse_layout_opts[] = - { - CFG_STR_LIST((char *) "modkey", (char *) "{}", CFGF_NONE), - CFG_STR((char *) "button", (char *) "None", CFGF_NONE), - CFG_STR((char *) "command", (char *) "", CFGF_NONE), - CFG_STR((char *) "arg", NULL, CFGF_NONE), - }; - static cfg_opt_t mouse_title_opts[] = + static cfg_opt_t mouse_generic_opts[] = { CFG_STR_LIST((char *) "modkey", (char *) "{}", CFGF_NONE), CFG_STR((char *) "button", (char *) "None", CFGF_NONE), @@ -286,8 +279,8 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf) { CFG_STR((char *) "modkey", (char *) "Mod4", CFGF_NONE), CFG_SEC((char *) "tag", mouse_tag_opts, CFGF_MULTI), - CFG_SEC((char *) "layout", mouse_layout_opts, CFGF_MULTI), - CFG_SEC((char *) "title", mouse_title_opts, CFGF_MULTI), + CFG_SEC((char *) "layout", mouse_generic_opts, CFGF_MULTI), + CFG_SEC((char *) "title", mouse_generic_opts, CFGF_MULTI), CFG_END() }; static cfg_opt_t opts[] =