Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return to desktop from fullscreen mode #33

Open
akien-mga opened this issue Jul 23, 2015 · 3 comments
Open

Return to desktop from fullscreen mode #33

akien-mga opened this issue Jul 23, 2015 · 3 comments

Comments

@akien-mga
Copy link
Contributor

On Linux at all, when the game is in fullscreen mode, it is not possible to go back to the desktop using Alt+Tab or one of the Ctrl+F# keys which let browse between the multiple desktops.

It would be nice to have this feature added.

A possible workaround would be to have an easy way to toggle the fullscreen mode (like Alt+Return), but this is not the case currently. The fullscreen radio button is even not accessible from the in-game settings, so you need to go back to the main menu to toggle fullscreen.

@Andrettin
Copy link
Owner

The full screen can be toggled with Ctrl+F or Alt+F (previously only on within scenarios, but I now uploaded a commit that allows doing that in the menu too).

Alt+Tab should work for tabbing out of Wyrmsun (it does under Windows at least). Maybe the fact that it is not working for you is related to the keyboard layout incompatibility issue?

@akien-mga
Copy link
Contributor Author

Thanks, both Ctrl+F and Alt+F seem to work to toggle the fullscreen mode, so that gives me a good workaround. Maybe the radio button should also be added to the in-game menu (currently only the resolution can be changed from within a scenario).

Regarding the Alt+Tab issue, I don't think that it's related to the keyboard layout, it is most likely related to the window management/focus-grabbing, etc.. I have the issue both with the SDL and OpenGL renderers btw.

@Szunti
Copy link
Contributor

Szunti commented Oct 14, 2015

SDL1 in fullscreen mode eats all input on linux. You can't switch window, change volume, etc. AFAIK it is a design issue. It is fixed only in SDL2.

The problem is that SDL1 input grabbing on X11 has two flaws:

  1. Can only grab both keyboard and mouse input.
    This cause that if Mouse Grabbing in the options menu is enabled (which is a must to play in windowed mode) you can't alt-tab, beacuse the window manager doesn't get the key input.
  2. In fullscreen mode, where mouse grabbing is not necessary, input grabs can't be disabled.

For desktop resolution there is a solution:
use a fullscreen sized window without decoration, and disable input grabbing.

For this the resolution changer UI would be nicer with a layout similar to this:
x Desktop size
o Other: width-list height-list [ ] Fullscreen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants