diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-01 22:40:29 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-01 22:40:29 +0100 |
commit | a834c438c6f7b4a3481d9272b574948958f3b544 (patch) | |
tree | dd7f092a88948b393e85504e1154f8bf4d45a17e /src | |
parent | 1a3051188c94b0433c85a78528f9e8298eefd206 (diff) | |
download | weechat-a834c438c6f7b4a3481d9272b574948958f3b544.zip |
core: add signals "mouse_enabled" and "mouse_disabled" (closes #244)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/curses/gui-curses-mouse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-mouse.c b/src/gui/curses/gui-curses-mouse.c index 93d7fd125..c62c728a5 100644 --- a/src/gui/curses/gui-curses-mouse.c +++ b/src/gui/curses/gui-curses-mouse.c @@ -89,6 +89,9 @@ gui_mouse_enable () { gui_mouse_enabled = 1; fprintf (stderr, "\033[?1005h\033[?1000h\033[?1002h"); + + (void) hook_signal_send ("mouse_enabled", + WEECHAT_HOOK_SIGNAL_STRING, NULL); } /* @@ -100,6 +103,9 @@ gui_mouse_disable () { gui_mouse_enabled = 0; fprintf (stderr, "\033[?1002l\033[?1000l\033[?1005l"); + + (void) hook_signal_send ("mouse_disabled", + WEECHAT_HOOK_SIGNAL_STRING, NULL); } /* |