X11BypassWindowManagerHint Bug?



  • 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



  • @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.



  • @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.