From fc8a58ca9defc1f4d583b2f3c580a9f889ba36b2 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 26 Feb 2016 21:28:11 +0100
Subject: [PATCH] Client: Solve automatic reconfiguring of windows in SIGWINCH.

---
 roguelike-client | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/roguelike-client b/roguelike-client
index 4514946..d527a90 100755
--- a/roguelike-client
+++ b/roguelike-client
@@ -131,10 +131,13 @@ def cursed_main(stdscr):
         if new_open_end:
             message_queue["open_end"] = True
 
+    def set_and_redraw_windows(*ignore):
+        set_windows()
+        draw_screen()
+
     curses.noecho()
     curses.curs_set(False)
-    signal.signal(signal.SIGWINCH,
-        lambda ignore_1, ignore_2: set_windows())
+    signal.signal(signal.SIGWINCH, set_and_redraw_windows)
     set_windows()
     delay = 1
     while True:
-- 
2.30.2