mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04:00
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.
This commit is contained in:
parent
b00dfcf7b6
commit
d4ee9be4d7
11 changed files with 57 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue