summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-mouse.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-05 11:55:58 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-05 11:55:58 +0200
commit875112756ca1ea162fce01ba85709c150e5269af (patch)
treec5d71fd275033ce9636f237198ddee2836b3a457 /src/gui/curses/gui-curses-mouse.c
parentecba10eab2eb7b62e72d56833aa54758aa99e1c7 (diff)
downloadweechat-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.c7
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" */