Package: redeclipse / 1.5.8-1

windowed-by-default.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Markus Koschany <apo@debian.org>
Date: Sat, 27 Aug 2016 00:58:08 +0200
Subject: windowed by default

Debian Games team has a preference for games starting in windoed mode, since
fullscreen SDL will capture all keyboard input and make the user unable to
escape via alt-tab, change volume, or exit sanely in the case of the
application locking up.

Forwarded: not-needed
---
 src/engine/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/engine/main.cpp b/src/engine/main.cpp
index f2ef690..d18f2b5 100644
--- a/src/engine/main.cpp
+++ b/src/engine/main.cpp
@@ -235,7 +235,7 @@ void setfullscreen(bool enable)
     }
 }
 
-VARF(0, fullscreen, 0, 1, 1, if(!(identflags&IDF_WORLD)) setfullscreen(fullscreen!=0));
+VARF(0, fullscreen, 0, 0, 1, if(!(identflags&IDF_WORLD)) setfullscreen(fullscreen!=0));
 
 void resetfullscreen()
 {