After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745471 - Highlighting: Ctrl should matter when you click
Highlighting: Ctrl should matter when you click
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.39.x
Other Linux
: Normal minor
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-02 16:45 UTC by Egmont Koblinger
Modified: 2015-03-03 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (851 bytes, patch)
2015-03-02 17:26 UTC, Egmont Koblinger
none Details | Review
Fix v2 (771 bytes, patch)
2015-03-02 17:31 UTC, Egmont Koblinger
committed Details | Review

Description Egmont Koblinger 2015-03-02 16:45:49 UTC
Ctrl+mouse does recrangular highlighting.

Currently the state of the Ctrl modifier is checked when you start dragging with the mouse and exceed the threshold.  Instead, we should read Ctrl's state when the mouse click occurs, so that the sequence Ctrl -> click -> release ctrl -> move mouse highlights in rectangular mode.
Comment 1 Christian Persch 2015-03-02 16:54:49 UTC
Agreed.
Comment 2 Egmont Koblinger 2015-03-02 17:26:28 UTC
Created attachment 298334 [details] [review]
Fix
Comment 3 Egmont Koblinger 2015-03-02 17:31:19 UTC
Created attachment 298338 [details] [review]
Fix v2

"extend selection" is a feature when you hold Shift and the application is not interested in mouse events. In this case we shouldn't check for Ctrl again and update the rectangular mode, as that'd result in stupid behavior and incorrect display contents (it's not visually updated to reflect the change in rect mode). So this one's the correct fix.
Comment 4 Egmont Koblinger 2015-03-02 17:37:41 UTC
Description probably unclear for those who're not aware of this feature (e.g. me until a couple of days ago :)).

So: Normal terminal contents, no application running that'd be interested in mouse events. Do some normal selection and totally release the mouse. The selection is there highlighted. Here with Shift+click you can continue extending that selection. And this is where we shouldn't care about Ctrl and hence my first patch was broken.
Comment 5 Egmont Koblinger 2015-03-03 14:11:14 UTC
Fixed