Commit d3ee2cc
authored
Fix macOS/Linux fullscreen Spaces and disable live window resize (#185)
* Fix macOS fullscreen Spaces and disable manual window resize
* 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.
* Restore SDL_WINDOW_RESIZABLE
* 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.1 parent 134a794 commit d3ee2cc
2 files changed
Lines changed: 6 additions & 4 deletions
File tree
- GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient
- Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
571 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
| |||
0 commit comments