Skip to content

Allow Ctrl-Drag Copying Tracks via TrackGrip - #8495

Merged
regulus79 merged 3 commits into
LMMS:masterfrom
regulus79:fix-ctrl-copy-track
Aug 4, 2026
Merged

Allow Ctrl-Drag Copying Tracks via TrackGrip#8495
regulus79 merged 3 commits into
LMMS:masterfrom
regulus79:fix-ctrl-copy-track

Conversation

@regulus79

Copy link
Copy Markdown
Member

This PR aims to address #7766 by making it possible to ctrl-drag on the TrackGrip (the patterned part on the very left edge of a track), to copy them, rather than having to carefully aim your mouse around the large settings/mute/solo buttons to copy a track.

2026-08-02.19-07-07.mp4

I made the constructor of TrackGrip take in the TrackView rather than the Track, since it is necessary to generate the drag preview image of the track. I think that is reasonable, since TrackGrip is in the GUI.

@rubiefawn rubiefawn added bug gui master branch This issue predominantly affects the active development (master) branch labels Aug 2, 2026
@rubiefawn rubiefawn added this to the 1.3-alpha.2 milestone Aug 2, 2026

@rubiefawn rubiefawn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, did some testing on the Windows build.

@yohannd1 yohannd1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it on Linux, works fine for me. Code wise I don't think I can say much but it looks alright, except for these two nitpicks:

Comment thread include/TrackGrip.h Outdated
Comment thread src/gui/tracks/TrackGrip.cpp Outdated
@regulus79

Copy link
Copy Markdown
Member Author

Thanks for testing! If there are no objections, I may merge this soon.

@regulus79
regulus79 merged commit 067c3ad into LMMS:master Aug 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug gui master branch This issue predominantly affects the active development (master) branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants