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

Minimize by Alt-Tab or Windows Key doesn't work in fullscreen but /minimize command works fine #114

Open
Nightshades1 opened this issue May 25, 2021 · 2 comments

Comments

@Nightshades1
Copy link

Nightshades1 commented May 25, 2021

Reporting a bug? Please make sure you've given the following information in detail - thanks!

Operating system and version: Windows 8.1

Description of the bug (and if possible, steps to reproduce the bug): Hello, Took current source and built addition on top of it with some changes, Alt-Tab or Windows Key doesn't work in fullscreen

What did you expect to happen instead? I expect it to minimize the game

Edit: I upgraded all windows libs to their latest version (sdl2 as well) could it be sdl2 issue ?

@Nightshades1
Copy link
Author

Update: This is indeed an issue with SDL2 i tried with SDL2 2.0.14 Compiled with an old SDL2 DLL (2.0.3) and it work as intended, something fucked up with latest SDL2 🤔

@Nightshades1
Copy link
Author

Okay To fix the issue you have to add SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "1"); just before SDL_Init inside GLimp_StartDriverAndSetMode function

In recent SDL2 version the devs made SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS to be "0" By default, that's what prevented the game to be minimized with alt+tab i hope it help you, got it to work perfect using latest SDL2 version, no more issue 👍

@Nightshades1 Nightshades1 reopened this Aug 2, 2021
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

1 participant