summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo.zancanaro@rokt.com>2018-12-12 13:46:53 +1100
committerCarlo Zancanaro <carlo.zancanaro@rokt.com>2019-08-09 21:58:16 +1000
commit8b196bac891258fc1f03637530e94f95afceeef9 (patch)
treed2a677c36096c535ec1f4135dd71f542ae680d3b /patches
Add patched-awesome
Diffstat (limited to 'patches')
-rw-r--r--patches/awesome-screen.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/awesome-screen.patch b/patches/awesome-screen.patch
new file mode 100644
index 0000000..969fffe
--- /dev/null
+++ b/patches/awesome-screen.patch
@@ -0,0 +1,13 @@
+diff --git a/objects/screen.c b/objects/screen.c
+index 93ce2288f..0da47e362 100644
+--- a/objects/screen.c
++++ b/objects/screen.c
+@@ -670,7 +670,7 @@ screen_refresh(void)
+ }
+
+ /* Remove screens which are gone */
+- for(int i = 0; i < globalconf.screens.len; i++) {
++ for(int i = 0; i < globalconf.screens.len && globalconf.screens.len > 1; i++) {
+ screen_t *old_screen = globalconf.screens.tab[i];
+ bool found = false;
+ foreach(new_screen, new_screens) \ No newline at end of file