Keeping a inactive Widget at top in KDE Plasma Wayland
-
Hi,
I've programmed a virtual keyboard in qt5 and it has worked in x11. But since I switched to Wayland setWindowFlags(Qt::WindowDoesNotAcceptFocus | Qt::Tool | Qt::WindowStaysOnTopHint); doesn't seem to be work anymore.
Are there any solutions? -
Wayland xdg-shell protocol does not allow programs to affect the placement of their top level windows at all.
If you know you are running under KDE Plasma, you can possibly distribute a KWin script along with your application that will handle marking the window as keep-above.
But something like a virtual keyboard would typically use a more specific Wayland protocol - probably
wlr-layer-shell(see https://github.com/KDE/layer-shell-qt). Virtual keyboards also need to use specific protocols to inject keystrokes.