diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-11-19 02:41:36 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-11-19 03:19:13 +0100 |
commit | 2d777dd67e9be3c5bfd36660ade94710de0f4a0d (patch) | |
tree | 046b13365164eb2ac437804a6eca90131183380b /termo-internal.h | |
parent | 5a80bceec9c3fcc304d8dde1c10f16a9adde8598 (diff) | |
download | termo-2d777dd67e9be3c5bfd36660ade94710de0f4a0d.tar.gz termo-2d777dd67e9be3c5bfd36660ade94710de0f4a0d.tar.xz termo-2d777dd67e9be3c5bfd36660ade94710de0f4a0d.zip |
Rewrite the mouse API
I wasn't aware of the fact that 1000, 1002 and 1003 are mutually
exclusive and turn each other off.
Also now it's not needed to set the protocol, it gets set by default.
Diffstat (limited to 'termo-internal.h')
-rw-r--r-- | termo-internal.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/termo-internal.h b/termo-internal.h index b2b1c3a..adf3e8f 100644 --- a/termo-internal.h +++ b/termo-internal.h @@ -81,9 +81,12 @@ struct termo } method; - int guessed_mouse_proto; // What we think should be the mouse protocol - int mouse_proto; // The active mouse protocol - termo_mouse_tracking_t mouse_tracking; // Mouse tracking mode + // What we think should be the mouse protocol + termo_mouse_proto_t guessed_mouse_proto; + // The active mouse protocol + termo_mouse_proto_t mouse_proto; + // Mouse tracking mode + termo_mouse_tracking_t mouse_tracking; // The mouse unfortunately directly depends on the terminfo driver to let // it handle changes in the mouse protocol. @@ -92,7 +95,7 @@ struct termo struct { - bool (*set_mouse_proto) (void *, int, bool); + bool (*set_mouse_proto) (void *, termo_mouse_proto_t, bool); bool (*set_mouse_tracking_mode) (void *, termo_mouse_tracking_t, bool); } ti_method; |