Menu

#288 Use window manager fullscreen on linux if it's supported

open
Nadro
None
5
2015-11-22
2014-06-25
Deve
No

It allows to use alt-tab and other shortcuts.

I patched irrlicht in Suprtuxkart few months ago and I didn't notice any issues. I checked it with Gnome, Openbox and Unity.

This method is used in SDL2.

1 Attachments

Discussion

  • Nadro

    Nadro - 2014-08-31
    • assigned_to: Nadro
     
  • Nadro

    Nadro - 2014-09-12
    • status: open --> closed-accepted
     
  • Michael Zeilfelder

    • status: closed-accepted --> open
     
  • Michael Zeilfelder

    Removed again from trunk and re-opened. A quick test on KDE showed that it worked really badly there. Mouse-grabbing not working, so fullscreen could be scrolled instead and it doesn't even solve the old problem with KDE and the Desktop is still messed up when switching back from fullscreen.

    Btw this also got discussed in the mailinglist and was not fixed before because it was already knows from the SDL guys that those problems do exist. I think it's a paramter there - which was the solution proposed on the mailinglist but not yet implemented because we do not have device-specific parameters so far which are needed for this.

     
  • Deve

    Deve - 2014-09-18

    In Supertuxkart grabbing mouse was not needed. I even prefer that mouse is not grabbed because I can use secondary desktop when I have two monitors connected. It's useful i.e. for recording videos, modifying scene in Blender etc.

    But you are right, we should look more globally. Maybe we should add functions for enable/disable mouse grabbing.

    Problem with KDE desktop after switching back from fullscreen is a totally different issue. This is probably related to vidmode/xrandr functions. You can check if this problem occurs in current STK git. Now we switch resolution in different way, using xrandr. But this is probably not good enough to merge it upstream.

     
  • Nadro

    Nadro - 2014-09-18

    I see that we have HasNetWM var in Irrlicht code, so we should clean-up current code - part with "if (netWM)" and existing "initAtoms" method.

     
  • Deve

    Deve - 2015-11-22

    It can be closed for now because it indeed could cause issues. I was sending fullscreen request and a while after irrlicht was reading window size. It was sometimes reporting size in windowed mode. Now I'm sending the fullscreen request event, and then I'm waiting until I receive information that window manager already changed the window to fullscreen. If you want, just look into Supertuxkart code how it works.

     

Log in to post a comment.