Open MarkJeronimus opened 3 years ago
Are you using "exclusive fullscreen" mode or are you running this in "desktop fullscreen" mode?
desktop fullscreen
Then... this shoudn't happen. Do you happen to use Wayland instead of X11 or some exotic (tiling?) window manager?
Xorg as stated in the OP.
Aallright, searching for "desktop fullscreen" lead me to i_video.c, in which I started poking around.
I'm not too familiar with SDL2, bit this "hack" seems to work for me and I haven't yet found any side-effects:
// Prevent executing action on Alt-Tab
if (Event->key.keysym.sym == SDLK_TAB)
{
DeactivateMouse(); // Added (line 262)
break;
}
Ah, cool! I wonder why SDL eats Alt-Tab at all.
Adding SDL_SetRelativeMouseMode(SDL_TRUE);
right after DeactivateMouse
and stepping over it with the debugger, causes alt-tab to be eaten again, but I can still do everything else in vscode with the keyboard.
Sorry, but I just checked with my Debian testing/unstable system and could not reproduce this.
I cannot alt-tab out of the game as long as the game is set to full-screen. This is a deal-breaker for me as it would mean I'd have to either exit or go into settings and toggle full-screen, every time I want to do something else like type something in discord.
I compiled 26um (from the release section) and f5ba5a39ad596af681ed3102fed5f28cc685089c, and both seem to suffer from this. It doesn't matter if I use 16bit, 32bit or OpenGL mode.
I don't know if it's a problem specific to my PC (as I see no one else complaining about this) because I don't have a second Linux PC. Please assist me, and yourself, in tracing this problem to the root cause. I already set up a working vscode project.
[edit] Added logs. I hope it's not too spammy.
I'm using Ubuntu 18.04 with Unity on XOrg.
cmake:
make
run: