Skip to content

Comments

Update KGlobalAccel shortcut backend for Plasma 6.5#7419

Open
acidiclight wants to merge 1 commit intoclementine-player:masterfrom
acidiclight:work/ritchie/kglobalaccel-key-repeat
Open

Update KGlobalAccel shortcut backend for Plasma 6.5#7419
acidiclight wants to merge 1 commit intoclementine-player:masterfrom
acidiclight:work/ritchie/kglobalaccel-key-repeat

Conversation

@acidiclight
Copy link

Hi. First time ever contributing here, bear with me!

This PR fixes a bug I'd seen reported on KDE's Bugzilla. Turns out, when we updated kglobalaccel in Frameworks 6.19.0 and kwin in Plasma 6.5, my code may have broken Clementine unintentionally... :(

I've updated the project's D-Bus interface to deal with us separating key repeat from key press events. In most cases, you shouldn't need to do anything special on a key repeat, and since I'm not familiar enough with Clementine's code yet, I opted to just emulate the old behaviour of kglobalaccel from before Frameworks 6.19.

This should have zero effect on older Plasma/kglobalaccel versions.

See also: https://bugs.kde.org/show_bug.cgi?id=511041

This commit updates the D-Bus interface and global shortcut
backend for kglobalaccel. KDE Frameworks 6.19.0 and Plasma
6.5 added a separate signal for shortcut key repeat events,
which breaks Clementine's implementation.

Kglobalaccel's previous behaviour was just to send key repeats
as normal press events. I decided to just emulate that behaviour.
Therefore, I've changed nothing other than connecting to the new
signal.

Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant