mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-21 01:40:16 -05:00
terminal: Make seat xcursor update focus aware
When term_xcursor_update_for_seat() was called on e.g. keyboard focus loss, it'd update the curret xcursor to 'text' even if it was e.g. on top of the window title, or resize areas. This makes the function a bit more focus aware, and will not be so eager to set the text xcursor.
This commit is contained in:
parent
d70a21355c
commit
5c2557b421
3 changed files with 38 additions and 9 deletions
2
input.c
2
input.c
|
|
@ -1372,7 +1372,7 @@ is_bottom_right(const struct terminal *term, int x, int y)
|
|||
(term->active_surface == TERM_SURF_BORDER_BOTTOM && x > term->width + 1 * csd_border_size * term->scale - 10 * term->scale)));
|
||||
}
|
||||
|
||||
static const char *
|
||||
const char *
|
||||
xcursor_for_csd_border(struct terminal *term, int x, int y)
|
||||
{
|
||||
if (is_top_left(term, x, y)) return XCURSOR_TOP_LEFT_CORNER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue