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:
@@ -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" */
|
||||
|
||||
Reference in New Issue
Block a user