mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: xcursor: use selection_enabled()
Instead of duplicating the code from selection_enabled() that deals with forced selection, just call selection_enabled(). This was previously not possible since selection_enabled() didn't require keyboard_focus. Now it does.
This commit is contained in:
parent
edb78575c7
commit
c8d94931e6
1 changed files with 1 additions and 2 deletions
|
|
@ -1436,8 +1436,7 @@ term_xcursor_update(struct terminal *term)
|
|||
{
|
||||
term->xcursor =
|
||||
term->is_searching ? "left_ptr" :
|
||||
term->mouse_tracking == MOUSE_NONE ? "text" :
|
||||
term->wl->focused == term && term->wl->kbd.shift ? "text" :
|
||||
selection_enabled(term) ? "text" :
|
||||
"hand2";
|
||||
|
||||
wayl_cursor_set(term->wl, term);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue