mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
core: fix stuck mouse (patch from Nei) (bug #36533)
This commit is contained in:
@@ -7,6 +7,7 @@ v0.4.0-dev, 2012-12-19
|
||||
Version 0.4.0 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix stuck mouse (bug #36533)
|
||||
* core: fix default mouse buttons actions for script buffer (focus the window
|
||||
before executing action)
|
||||
* core: add git version in build, display it in "weechat-curses --help" and
|
||||
|
||||
@@ -323,6 +323,13 @@ gui_mouse_event_code2key (const char *code)
|
||||
}
|
||||
}
|
||||
|
||||
/* nothing found, reset now or mouse will be stuck */
|
||||
if (!key[0])
|
||||
{
|
||||
gui_mouse_event_reset ();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!MOUSE_CODE_END(code[0]))
|
||||
{
|
||||
strcat (key, "-event-");
|
||||
|
||||
Reference in New Issue
Block a user