Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Keeping a inactive Widget at top in KDE Plasma Wayland
Forum Updated to NodeBB v4.3 + New Features

Keeping a inactive Widget at top in KDE Plasma Wayland

Scheduled Pinned Locked Moved Unsolved General and Desktop
accessibilitykdewayland
2 Posts 2 Posters 55 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tobstar008
    wrote last edited by tobstar008
    #1

    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?

    1 Reply Last reply
    0
    • I Online
      I Online
      IgKh
      wrote last edited by
      #2

      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.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved