ui: Add fullscreen exclusive mode

This commit is contained in:
wutno 2023-01-16 22:20:52 -05:00 committed by mborgerson
parent fd1fcc32c2
commit 6b0c66c6a1
2 changed files with 4 additions and 1 deletions

View File

@ -108,6 +108,7 @@ display:
default: 1
window:
fullscreen_on_startup: bool
fullscreen_exclusive: bool
startup_size:
type: enum
values: [last_used, 640x480, 1280x720, 1280x800, 1280x960, 1920x1080, 2560x1440, 2560x1600, 2560x1920, 3840x2160]

View File

@ -380,7 +380,9 @@ static void set_full_screen(struct sdl2_console *scon, bool set)
if (gui_fullscreen) {
SDL_SetWindowFullscreen(scon->real_window,
SDL_WINDOW_FULLSCREEN_DESKTOP);
(g_config.display.window.fullscreen_exclusive ?
SDL_WINDOW_FULLSCREEN :
SDL_WINDOW_FULLSCREEN_DESKTOP));
gui_saved_grab = gui_grab;
sdl_grab_start(scon);
} else {