Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force kwin to give focus to SMPlayer on "Toggle window media player" (it actually applies to all non-KDE media players using MPRIS) #38

Open
kupiqu opened this issue Nov 24, 2017 · 0 comments

Comments

@kupiqu
Copy link

kupiqu commented Nov 24, 2017

This issue follows some discussion in issue #37

SMPlayer dev comment:

There's already code to raise the window in the mpris2 code (of SMPlayer), however it seems most desktops ignore it because they don't allow a window to go foreground on its own. The dragonplayer uses a specific function from the KDE libraries to do it (KWindowSystem::forceActiveWindow), but I can't use the KDE libraries, otherwise smplayer will depend on a lot of KDE packages.

Maybe the call to that function can be done by playbar2. According to
the KDE documentation that function should only be used by "pagers and
similar tools".

https://api.kde.org/frameworks/kwindowsystem/html/classKWindowSystem.html#aecb213d950a6615fc0e961273d72e166

Thanks for considering!

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

No branches or pull requests

1 participant