Skip to content

Fix macOS/Linux fullscreen Spaces and disable live window resize#185

Merged
fbraz3 merged 2 commits into
mainfrom
fix-macos-fullscreen
Jul 3, 2026
Merged

Fix macOS/Linux fullscreen Spaces and disable live window resize#185
fbraz3 merged 2 commits into
mainfrom
fix-macos-fullscreen

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Description

Fixes macOS and Linux fullscreen behavior (Spaces/Desktop Fullscreen).

Changes

  • Changed SDL_SetWindowFullscreenMode to receive nullptr instead of mode, effectively requesting Desktop Fullscreen instead of Exclusive Fullscreen. This restores native macOS Spaces support (mouse gestures) and prevents X11/Wayland from locking out the window manager on Linux.
  • Removed SDL_WINDOW_RESIZABLE flag to disable manual window edge dragging (which messes up the DXVK swapchain on live resize) and correctly disables the native macOS maximize (green) button when in windowed mode, improving the game-like experience.

fbraz3 added 2 commits July 2, 2026 21:42
* Pass nullptr to SDL_SetWindowFullscreenMode to request Desktop Fullscreen (Spaces) instead of Exclusive mode, allowing trackpad gestures to work.
* Remove SDL_WINDOW_RESIZABLE to prevent live window resizing (which distorts the DXVK swapchain) and to disable the native macOS green maximize button in windowed mode.
* Allows live window resizing and native maximize/minimize buttons to work as expected in windowed mode (-win).
* Fullscreen Spaces support remains active due to the nullptr argument in W3DDisplay.
@fbraz3 fbraz3 merged commit d3ee2cc into main Jul 3, 2026
8 checks passed
@fbraz3 fbraz3 deleted the fix-macos-fullscreen branch July 3, 2026 01:36
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

Successfully merging this pull request may close these issues.

1 participant