From e0f6898722d88af212b9fd658aa8a54226deabc3 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 2 May 2013 04:13:15 +0200
Subject: [PATCH] Test for minimal window size no longer necessary since
 windows cannot shrink so far.

---
 windows.c | 7 +------
 windows.h | 1 -
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/windows.c b/windows.c
index 5d924e9..8b82d60 100644
--- a/windows.c
+++ b/windows.c
@@ -151,14 +151,9 @@ void draw_windows_borders (struct Win * win, struct Win * win_active, struct Cor
   if (0 != win->next) {
     draw_windows_borders (win->next, win_active, corners, ccount + 1); } }
 
-void draw_window(struct Win * win) {
-// Draw window content if visible.
-  if (win->height > 1 && win->width > 1)
-    win->draw(win); }
-
 void draw_windows (struct Win * win) {
 // Draw contents of all windows in window chain from win on.
-  draw_window(win);
+  win->draw(win);
   if (0 != win->next) {
     draw_windows (win->next); } }
 
diff --git a/windows.h b/windows.h
index 262c176..0191931 100644
--- a/windows.h
+++ b/windows.h
@@ -35,7 +35,6 @@ void suspend_window (struct WinMeta *, struct Win *);
 struct yx place_window (struct WinMeta *, struct Win *);
 void update_windows (struct WinMeta *, struct Win *);
 void destroy_window (struct Win *);
-void draw_window(struct Win *);
 void draw_windows (struct Win *);
 void draw_windows_borders (struct Win *, struct Win *, struct Corners *, int);
 void draw_window_borders (struct Win *, char);
-- 
2.30.2