Alt+Tab is blocked once the game window has focus (can't Alt+Tab out) #13

Closed
opened 2026-11-18 11:12:59 +00:00 by vekien · 1 comment

Version: 2026.11.17-09b0d15 (Windows/amd64)
Server: server.catseyexi.com (Native loader)
System: Windows 11 Home (10.0.26200), NVIDIA GeForce RTX 5070 Ti Laptop GPU, D3D12 backend, 2560×1600 at 125% scaling.
Display config: windowed (fullscreen: 0), vsync on.

Description

Once the game window has focus (for example after Alt+Tabbing into it), Alt+Tab no longer works to leave it. Pressing Alt+Tab while Zantetsuken is focused doesn't open the Windows task switcher or switch to another app, so you can't get out of the game with the keyboard. It happens in windowed mode, not just fullscreen.

Possible cause

The exe references SDL_SetWindowKeyboardGrab and SDL_ALLOW_ALT_TAB_WHILE_GRABBED. If the window turns keyboard grab on when it gains focus, SDL3 swallows system shortcuts like Alt+Tab unless SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED is set to 1, and a keyboard grab installs a low-level keyboard hook on Windows. Suggestions:

  • Set SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED=1 (before window creation), or
  • Don't take keyboard grab in windowed mode, or only while the game is in a mode that needs it, and
  • Release the grab on focus loss / Alt key.

Steps to reproduce

  1. Launch Zantetsuken in windowed mode.
  2. Alt+Tab to another app, then Alt+Tab back into the game.
  3. Press Alt+Tab again. Nothing happens and you stay in the game.

Log

Nothing about window focus or input grab is logged.

**Version:** 2026.11.17-09b0d15 (Windows/amd64) **Server:** server.catseyexi.com (Native loader) **System:** Windows 11 Home (10.0.26200), NVIDIA GeForce RTX 5070 Ti Laptop GPU, D3D12 backend, 2560×1600 at 125% scaling. **Display config:** windowed (`fullscreen: 0`), vsync on. ### Description Once the game window has focus (for example after Alt+Tabbing into it), **Alt+Tab no longer works to leave it**. Pressing Alt+Tab while Zantetsuken is focused doesn't open the Windows task switcher or switch to another app, so you can't get out of the game with the keyboard. It happens in windowed mode, not just fullscreen. ### Possible cause The exe references `SDL_SetWindowKeyboardGrab` and `SDL_ALLOW_ALT_TAB_WHILE_GRABBED`. If the window turns keyboard grab on when it gains focus, SDL3 swallows system shortcuts like Alt+Tab unless `SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED` is set to `1`, and a keyboard grab installs a low-level keyboard hook on Windows. Suggestions: - Set `SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED=1` (before window creation), or - Don't take keyboard grab in windowed mode, or only while the game is in a mode that needs it, and - Release the grab on focus loss / Alt key. ### Steps to reproduce 1. Launch Zantetsuken in windowed mode. 2. Alt+Tab to another app, then Alt+Tab back into the game. 3. Press Alt+Tab again. Nothing happens and you stay in the game. ### Log Nothing about window focus or input grab is logged.
Owner
Fixed in https://git.bangplays.games/Banggugyangu/Zantetsuken-Releases/releases/tag/11_18_01
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Banggugyangu/Zantetsuken-Releases#13
No description provided.