aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-30 16:06:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-30 16:06:15 +0000
commit2208f4304b799dbaaf52629d8ef3ce5629f16184 (patch)
treecc4f6af105e2ef33919c95d090ca87dc6c9ffc5a /terminal.h
parentcommands: 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index a7fb2b06..eefc2065 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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);