From f935d9b1054cf3bc09be70c90824591b7cfa0ef2 Mon Sep 17 00:00:00 2001 From: "Andreas J. Reichel" Date: Wed, 17 Nov 2021 14:35:22 +0100 Subject: [PATCH] Unix: Make fullscreen command really toggle Help says that fullscreen TOGGLES fullscreen. Fix this. Signed-off-by: Andreas J. Reichel --- src/unix/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/unix.c b/src/unix/unix.c index ae786f8ad..3d20b3adf 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -833,7 +833,7 @@ void monitor_thread(void* param) } else if (strncasecmp(xargv[0], "fullscreen", 10) == 0) { - video_fullscreen = 1; + video_fullscreen = video_fullscreen ? 0 : 1; fullscreen_pending = 1; } else if (strncasecmp(xargv[0], "pause", 5) == 0)