From e4a2d41f51785452ccb0bdb24ac5577203ff0da3 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 16 May 2020 21:09:59 +0200 Subject: selection: don't automatically no-op operations if selection isn't enabled When the client is capturing the mouse, selection can only be done by holding done shift. This is why a lot of selection functions are no-ops if selection isn't currently enabled. However, there are many cases where we actually need to modify the selection. In particular, selection_cancel(). Thus, only check for enabled selection when we're dealing with user input. Bonus: this also fixes a bug where an ongoing selection were finalized as soon as the user released shift, even if he was still holding down the mouse button. --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index bce49494..c10c01d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,14 @@ ### Deprecated ### Removed ### Fixed + +* Do not stop an ongoing selection when `shift` is released. When the + client application is capturing mouse events, one must hold down + `shift` to start a selection. This selection is now finalized only + when the mouse button is released - not as soon as `shift` is + released. + + ### Security -- cgit v1.3