diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-07-28 15:36:39 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-07-28 15:36:39 +0200 |
commit | 51ef22c2845892c6cee078ec29807fc0d1ecf29e (patch) | |
tree | f1d3c72d45d3324cd0ddc4c82df6676637cae4d7 /src/core | |
parent | 17037e32d8a6d54fd7e25c2a5fa81ea6a39cf66d (diff) | |
download | weechat-51ef22c2845892c6cee078ec29807fc0d1ecf29e.zip |
core: improve mouse support: process utf-8 codes, add option weechat.look.mouse_timer_delay, remove key meta2-M, fix problem with iso chars when grabbing mouse codes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-command.c | 6 | ||||
-rw-r--r-- | src/core/wee-config.c | 7 | ||||
-rw-r--r-- | src/core/wee-config.h | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index bb29c987b..d5dc38ed2 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -3112,12 +3112,6 @@ COMMAND_CALLBACK(mouse) return WEECHAT_RC_OK; } - if (string_strcasecmp (argv[1], "grab") == 0) - { - gui_mouse_grab_init (); - return WEECHAT_RC_OK; - } - return WEECHAT_RC_OK; } diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 92e552528..cd4654027 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -110,6 +110,7 @@ struct t_config_option *config_look_item_time_format; struct t_config_option *config_look_jump_current_to_previous_buffer; struct t_config_option *config_look_jump_previous_buffer_when_closing; struct t_config_option *config_look_mouse; +struct t_config_option *config_look_mouse_timer_delay; struct t_config_option *config_look_nickmode; struct t_config_option *config_look_nickmode_empty; struct t_config_option *config_look_paste_max_lines; @@ -1801,6 +1802,12 @@ config_weechat_init_options () "mouse", "boolean", N_("enable mouse support at startup (to enable it now, see /help mouse)"), NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + config_look_mouse_timer_delay = config_file_new_option ( + weechat_config_file, ptr_section, + "mouse_timer_delay", "integer", + N_("delay (in milliseconds) to grab a mouse event: WeeChat will " + "wait this delay before processing event"), + NULL, 1, 10000, "100", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); config_look_nickmode = config_file_new_option ( weechat_config_file, ptr_section, "nickmode", "boolean", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index a617e8f98..6ee81a216 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -134,6 +134,7 @@ extern struct t_config_option *config_look_item_time_format; extern struct t_config_option *config_look_jump_current_to_previous_buffer; extern struct t_config_option *config_look_jump_previous_buffer_when_closing; extern struct t_config_option *config_look_mouse; +extern struct t_config_option *config_look_mouse_timer_delay; extern struct t_config_option *config_look_nickmode; extern struct t_config_option *config_look_nickmode_empty; extern struct t_config_option *config_look_paste_max_lines; |