From d4ee9be4d767ff4927c9e322bdbf958841dc091d Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 31 Jul 2020 17:09:06 +0200 Subject: 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. --- terminal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'terminal.h') 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); -- cgit v1.3