aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-31 15:09:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-31 15:09:06 +0000
commitd4ee9be4d767ff4927c9e322bdbf958841dc091d (patch)
treeab8adafe11e3bae878f38e9559b1abbf937f48a1 /terminal.h
parentconfig: configuration errors are no longer fatal (diff)
config: add 'hide-when-typing'
When enabled, the mouse cursor is hidden when the user types in the terminal. It is un-hidden when the user moves the mouse, or when the window loses keyboard focus.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 31316e37..8d3283ce 100644
--- a/terminal.h
+++ b/terminal.h
@@ -439,6 +439,7 @@ struct terminal {
char *cwd;
};
+extern const char *const XCURSOR_HIDDEN;
extern const char *const XCURSOR_LEFT_PTR;
extern const char *const XCURSOR_TEXT;
//extern const char *const XCURSOR_HAND2;
@@ -531,6 +532,7 @@ void term_mouse_motion(
bool shift, bool alt, bool ctrl);
bool term_mouse_grabbed(const struct terminal *term, struct seat *seat);
void term_xcursor_update(struct terminal *term);
+void term_xcursor_update_for_seat(struct terminal *term, struct seat *seat);
void term_set_window_title(struct terminal *term, const char *title);
void term_flash(struct terminal *term, unsigned duration_ms);