Stock upstream implementation of global shortcuts in Qxt doesn't support multimedia keys. Qxt issue tracker has a corresponding issue opened for almost 3.5 years without any reaction from upstream: http://dev.libqxt.org/libqxt-old-hg/issue/75/qxtglobalshortcut-does-not-support-media . Applications using libqxt typically bundle it with the proper fix, like Clementine in the link above or LeechCraft. Reproducible: Always Steps to Reproduce: 1. Install app-leechcraft/lc-{lmp,gacts}-9999. 2. Try setting a shortcut containing a multimedia button (like Play/Pause) in LC settings for some action in LMP. Actual Results: Pressing the assigned key doesn't trigger the corresponding action. Expected Results: The corresponding action should be triggered.
Created attachment 366172 [details, diff] Patch fixing the issue The patch is taken from Fedora at http://pkgs.fedoraproject.org/cgit/libqxt.git/tree/libqxt-media-keys.patch . This is also the same patch applied to lc-gacts bundled version of Qxt. Seems to work for me.
Patch added in -r2
The patch is not same as in https://github.com/clementine-player/Clementine/blob/master/3rdparty/qxt/media-keys.patch , why part of it was removed?
Hard to say, I've just borrowed the patch from Fedora. Looks like the difference should be put back to Gentoo's patch. Thanks for noticing this.
Please also consider adding this patch: https://github.com/clementine-player/Clementine/blob/master/3rdparty/qxt/meta-modifier.patch Then it will be possible to use in clementine ebuilds system qxt copy instead of bundled.
(In reply to Nikoli from comment #5) > Please also consider adding this patch: > https://github.com/clementine-player/Clementine/blob/master/3rdparty/qxt/ > meta-modifier.patch > Is that an upstream patch?
Seems author of patch is David Sansome, main Clementine dev: https://github.com/clementine-player/Clementine/commit/35f0c65046c6e25d3749f6a2be8648b73c64e33a https://github.com/clementine-player/Clementine/issues/329 Do not know if libqxt devs accepted and applied the patch.
libqxt upstream is dead and there's only a couple of Qt 4 revdeps still using this package. Once they're cleaned up, this package will be last rited.