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. X11BypassWindowManagerHint Bug?
Qt 6.11 is out! See what's new in the release blog

X11BypassWindowManagerHint Bug?

Scheduled Pinned Locked Moved Solved General and Desktop
qtwindowstaysx11bypasswindow
3 Posts 2 Posters 2.4k Views 2 Watching
  • 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.
  • A Offline
    A Offline
    amonR2
    wrote on last edited by
    #1

    Hi there,
    Developing on Ubuntu I am trying to put my app above the dashboard (or app launcher), the window appearing when you press the super button (or Windows logo). So to reach that purpose I use the following flag: setWindowFlags(Qt::X11BypassWindowManagerHint);
    It works, however this code displays my app on all existing desktops.

    Is it a bug or is it normal? Is there another way to put my app above the "dashboard" without displaying on all desktops. Obviously when I don't use the flag my app shows normally in one desktop but remains behind the dasboard when this one is called. In both situations I already use Qt::WindowStaysOnTopHint flag.

    Cheers

    A 1 Reply Last reply
    0
    • A amonR2

      Hi there,
      Developing on Ubuntu I am trying to put my app above the dashboard (or app launcher), the window appearing when you press the super button (or Windows logo). So to reach that purpose I use the following flag: setWindowFlags(Qt::X11BypassWindowManagerHint);
      It works, however this code displays my app on all existing desktops.

      Is it a bug or is it normal? Is there another way to put my app above the "dashboard" without displaying on all desktops. Obviously when I don't use the flag my app shows normally in one desktop but remains behind the dasboard when this one is called. In both situations I already use Qt::WindowStaysOnTopHint flag.

      Cheers

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @amonR2 Well the reason that is happening is you are telling your app to ignore the window manager hints. This ignores the "which desktop it is shown on" hint as well.

      This may just be a thing with your particular window manager (cinnamon?) or it could be across other wms as well (gnome/kde?).

      You could try to set the specific setting you want for your window rather than ignoring all hints. You may end up outside Qt to get that functionality though. You may have to go raw X11/Windows/ObjC for each platform to force your app over a window manager.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      1
      • A Offline
        A Offline
        amonR2
        wrote on last edited by
        #3

        @ambershark said in X11BypassWindowManagerHint Bug?:

        @amonR2 Well the reason that is happening is you are telling your app to ignore the window manager hints. This ignores the "which desktop it is shown on" hint as well.

        Hi ambershark, thank you for you reply. I didn't know about it and it seems to make sense. So it's not a bug, it's normal.

        Thanks again.

        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