diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-05 11:55:58 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-05 11:55:58 +0200 |
commit | 875112756ca1ea162fce01ba85709c150e5269af (patch) | |
tree | c5d71fd275033ce9636f237198ddee2836b3a457 /src/gui/curses/gui-curses-mouse.c | |
parent | ecba10eab2eb7b62e72d56833aa54758aa99e1c7 (diff) | |
download | weechat-875112756ca1ea162fce01ba85709c150e5269af.zip |
core: ignore mouse code '@' (coordinates) when it is received as first event (bug of urxvt sending only this code on shift-selection in terminal)
Diffstat (limited to 'src/gui/curses/gui-curses-mouse.c')
-rw-r--r-- | src/gui/curses/gui-curses-mouse.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-mouse.c b/src/gui/curses/gui-curses-mouse.c index a1a2c875a..a25dfa93a 100644 --- a/src/gui/curses/gui-curses-mouse.c +++ b/src/gui/curses/gui-curses-mouse.c @@ -249,8 +249,11 @@ gui_mouse_event_code2key (const char *code) if (y < 0) y = 0; - /* ignore code '#' (button released) if it's received as first event */ - if ((gui_mouse_event_index == 0) && (code[0] == '#')) + /* + * ignore code '#' (button released) or '@' (coordinates) if it's received + * as first event + */ + if ((gui_mouse_event_index == 0) && ((code[0] == '#') || (code[0] == '@'))) return NULL; /* set data in "gui_mouse_event_xxx" */ |