mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
term: rename term_focus_{in,out} -> term_kbd_focus_{in,out}
This commit is contained in:
parent
90a1d920bb
commit
e9325b958f
3 changed files with 6 additions and 6 deletions
4
input.c
4
input.c
|
|
@ -90,7 +90,7 @@ keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
|||
wayl->kbd_focus = wayl_terminal_from_surface(wayl, surface);
|
||||
assert(wayl->kbd_focus != NULL);
|
||||
|
||||
term_focus_in(wayl->kbd_focus);
|
||||
term_kbd_focus_in(wayl->kbd_focus);
|
||||
term_xcursor_update(wayl->kbd_focus);
|
||||
}
|
||||
|
||||
|
|
@ -157,7 +157,7 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
|||
* keyboard_leave() (and keyboard_key()) without first having
|
||||
* received a keyboard_enter()
|
||||
*/
|
||||
term_focus_out(old_focused);
|
||||
term_kbd_focus_out(old_focused);
|
||||
term_xcursor_update(old_focused);
|
||||
} else {
|
||||
LOG_WARN(
|
||||
|
|
|
|||
|
|
@ -1392,7 +1392,7 @@ term_restore_cursor(struct terminal *term)
|
|||
}
|
||||
|
||||
void
|
||||
term_focus_in(struct terminal *term)
|
||||
term_kbd_focus_in(struct terminal *term)
|
||||
{
|
||||
if (term->cursor_blink.active)
|
||||
cursor_blink_start_timer(term);
|
||||
|
|
@ -1404,7 +1404,7 @@ term_focus_in(struct terminal *term)
|
|||
}
|
||||
|
||||
void
|
||||
term_focus_out(struct terminal *term)
|
||||
term_kbd_focus_out(struct terminal *term)
|
||||
{
|
||||
if (term->cursor_blink.active)
|
||||
cursor_blink_stop_timer(term);
|
||||
|
|
|
|||
|
|
@ -378,8 +378,8 @@ void term_arm_blink_timer(struct terminal *term);
|
|||
|
||||
void term_restore_cursor(struct terminal *term);
|
||||
|
||||
void term_focus_in(struct terminal *term);
|
||||
void term_focus_out(struct terminal *term);
|
||||
void term_kbd_focus_in(struct terminal *term);
|
||||
void term_kbd_focus_out(struct terminal *term);
|
||||
void term_mouse_down(struct terminal *term, int button, int row, int col);
|
||||
void term_mouse_up(struct terminal *term, int button, int row, int col);
|
||||
void term_mouse_motion(struct terminal *term, int button, int row, int col);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue