From c1f35731e0a98344b605d5b07caa77c2f00e3791 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 26 Jul 2020 12:31:13 +0200 Subject: input: margins are not selectable * Fix col/row calculation in pointer-enter event; we did not take the margins into account. * seat->mouse.col,row are now set to -1 if the cursor is inside the margins. That is, col/row are only ever valid when the mouse is actually over the grid, and not in the margins. * Use regular 'left-ptr' mouse cursor when mouse is inside the margins, to not make the user think he/she can start a selection. Besides making things clearer, this also fixes a crash that occurred if you started a selection in e.g. the right margin. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index ea392a60..22da9175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,11 +32,17 @@ outside it. * Scrollback search to focus match, that requires a viewport change, roughly in the center of the screen. +* Mouse cursor is now always a `left_ptr` when inside the margins, to + indicate it is not possible to start a selection. ### Deprecated ### Removed ### Fixed + +* Crash when starting a selection inside the margins. + + ### Security -- cgit v1.3 From ee5c9d714a31b0bdf2b46188c30c30eb1bb27e80 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 26 Jul 2020 12:41:32 +0200 Subject: changelog: scrollback position indicator --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 638609a9..fd2b1d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,9 @@ roughly in the center of the screen. * Mouse cursor is now always a `left_ptr` when inside the margins, to indicate it is not possible to start a selection. +* Scrollback position indicator. This feature is optional and + controlled by the **scrollback-indicator-style** and + **scrollback-indicator-format** options in `footrc`. ### Deprecated -- cgit v1.3 From 0c8b44ab67bdcffee6fe7f16c400c254a37b1d95 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 27 Jul 2020 19:07:00 +0200 Subject: changelog: add link to issue --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index cd38f103..4f57df94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,7 +53,8 @@ indicate it is not possible to start a selection. * Scrollback position indicator. This feature is optional and controlled by the **scrollback-indicator-style** and - **scrollback-indicator-format** options in `footrc`. + **scrollback-indicator-format** options in `footrc` + (https://codeberg.org/dnkl/foot/issues/42). ### Fixed -- cgit v1.3 From 9d859131367cea63ac4d604dd269db35a9a0bdb1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 27 Jul 2020 19:08:28 +0200 Subject: changelog: move scrollback indicator entries from 1.4.3 to 'unreleased' --- CHANGELOG.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f57df94..35669232 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,21 @@ ### Added ### Deprecated ### Removed +### Changed + +* Mouse cursor is now always a `left_ptr` when inside the margins, to + indicate it is not possible to start a selection. +* Scrollback position indicator. This feature is optional and + controlled by the **scrollback-indicator-style** and + **scrollback-indicator-format** options in `footrc` + (https://codeberg.org/dnkl/foot/issues/42). + + ### Fixed + +* Crash when starting a selection inside the margins. + + ### Security ### Contributors @@ -49,12 +63,6 @@ roughly in the center of the screen. * Extending a selection with the right mouse button now works while dragging the mouse. -* Mouse cursor is now always a `left_ptr` when inside the margins, to - indicate it is not possible to start a selection. -* Scrollback position indicator. This feature is optional and - controlled by the **scrollback-indicator-style** and - **scrollback-indicator-format** options in `footrc` - (https://codeberg.org/dnkl/foot/issues/42). ### Fixed @@ -63,7 +71,6 @@ * Crash when a **pipe-visible** or **pipe-scrollback** command contained an unclosed quote (https://codeberg.org/dnkl/foot/issues/49). -* Crash when starting a selection inside the margins. ### Contributors -- cgit v1.3