Third-party dock (C++): how to support AutoHide (Screen Edge) and Global Shortcuts ?

Viet Dang dangvd at gmail.com
Fri Oct 18 21:03:44 BST 2024


Hi,

I'm working on some improvements of my third-party dock (written in C++
here: https://github.com/dangvd/crystal-dock) and have some questions about
AutoHide (Screen Edge) and Global Shortcuts support in KWin:
- AutoHide: I'd like to get my dock to have an AutoHide behaviour like that
of a Plasma panel. Is Screen Edge protocol (
https://wayland.app/protocols/kde-screen-edge-v1) the right one to use? And
if it is, what's the best way to get wl_surface object from my main widget?
(I already use layer-shell-qt for my main widget)
- Global Shortcuts: how do I support global shortcuts for my dock (e.g.
Meta-1 to activate launcher 1 and so on). Is xdg-desktop-portal (
https://github.com/flatpak/xdg-desktop-portal/blob/main/data/org.freedesktop.portal.GlobalShortcuts.xml)
the right one to use?

Thanks a lot,
Viet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20241018/cb2f9b68/attachment.htm>


More information about the kwin mailing list