diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 16:06:15 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 16:06:15 +0000 |
| commit | 2208f4304b799dbaaf52629d8ef3ce5629f16184 (patch) | |
| tree | cc4f6af105e2ef33919c95d090ca87dc6c9ffc5a /terminal.h | |
| parent | commands: scrollback: don't scrollback if mouse tracking is enabled (diff) | |
term: add term_mouse_grabbed()
When this returns true, it means we have keyboard focus and are
grabbing the mouse (for e.g. selections), regardless of whether the
client has enabled mouse tracking or not.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -366,6 +366,7 @@ void term_mouse_up(struct terminal *term, int button, int row, int col, bool shift, bool alt, bool ctrl); void term_mouse_motion(struct terminal *term, int button, int row, int col, bool shift, bool alt, bool ctrl); +bool term_mouse_grabbed(const struct terminal *term); void term_xcursor_update(struct terminal *term); void term_set_window_title(struct terminal *term, const char *title); |
