mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
input: motion: do selection update even if cursor is outside the grid
Previously, the selection was only updated when the mouse cursor was inside the grid. This makes it difficult to e.g. do large selections fast, since you often end up moving the cursor outside the grid, or outside the terminal window even. Now, we update the selection regardless of *where* the cursor is. This is done by bounding the row/col we pass to 'selection_update()' to the grid, while still setting the seat's row/col to -1 when the cursor is outside the grid, to ensure the xcursor etc are set correctly. Care must also be taken to *not* pass any motion events to a mouse grabbing client, when the cursor is outside the grid. Closes #70.
This commit is contained in:
parent
158722b642
commit
721ca80abe
2 changed files with 22 additions and 9 deletions
|
|
@ -55,6 +55,8 @@
|
|||
text.
|
||||
* Compilation errors in 32-bit builds.
|
||||
* Mouse cursor style of top and left margins.
|
||||
* Selection is now **updated** when the cursor moves outside the grid
|
||||
(https://codeberg.org/dnkl/foot/issues/70).
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue