mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04:00
terminal: use the 'text' xcursor pointer whenever selection is possible
This commit is contained in:
parent
729ba8b8ac
commit
0dd37f0a36
6 changed files with 72 additions and 36 deletions
4
csi.c
4
csi.c
|
|
@ -875,14 +875,17 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
|
||||
case 1000:
|
||||
term->mouse_tracking = MOUSE_CLICK;
|
||||
term_xcursor_update(term);
|
||||
break;
|
||||
|
||||
case 1002:
|
||||
term->mouse_tracking = MOUSE_DRAG;
|
||||
term_xcursor_update(term);
|
||||
break;
|
||||
|
||||
case 1003:
|
||||
term->mouse_tracking = MOUSE_MOTION;
|
||||
term_xcursor_update(term);
|
||||
break;
|
||||
|
||||
case 1004:
|
||||
|
|
@ -1000,6 +1003,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
case 1002: /* MOUSE_BUTTON_EVENT */
|
||||
case 1003: /* MOUSE_ANY_EVENT */
|
||||
term->mouse_tracking = MOUSE_NONE;
|
||||
term_xcursor_update(term);
|
||||
break;
|
||||
|
||||
case 1005: /* MOUSE_UTF8 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue