mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
selection: track selection type; normal or block selection
This commit is contained in:
parent
1178a7763b
commit
d706e68280
5 changed files with 18 additions and 7 deletions
4
input.c
4
input.c
|
|
@ -581,7 +581,9 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
|
|||
if (button == BTN_LEFT) {
|
||||
switch (wayl->mouse.count) {
|
||||
case 1:
|
||||
selection_start(term, wayl->mouse.col, wayl->mouse.row);
|
||||
selection_start(
|
||||
term, wayl->mouse.col, wayl->mouse.row,
|
||||
wayl->kbd.ctrl ? SELECTION_BLOCK : SELECTION_NORMAL);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue