1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

core: ignore mouse code '@' (coordinates) when it is received as first event (bug of urxvt sending only this code on shift-selection in terminal)

This commit is contained in:
Sebastien Helleu
2011-10-05 11:55:58 +02:00
parent ecba10eab2
commit 875112756c
+5 -2
View File
@@ -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" */