home · contact · privacy
draw_all_windows() only starts drawing cycle if any window is actually visible.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 22 Apr 2013 16:53:42 +0000 (18:53 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 22 Apr 2013 16:53:42 +0000 (18:53 +0200)
windows.c

index f879e6b07dbc67db5eed8db411da4ecd4258708c..26267aa69fae6f8a89c9e512d7d6364ee8ca2df4 100644 (file)
--- a/windows.c
+++ b/windows.c
@@ -120,7 +120,8 @@ void draw_windows (struct WinMeta * win_meta, struct Win * win) {
 
 void draw_all_windows (struct WinMeta * win_meta) {
 // Draw all windows from the chain start on.
-  draw_windows (win_meta, win_meta->chain_start); }
+  if (win_meta->chain_start)
+    draw_windows (win_meta, win_meta->chain_start); }
 
 void draw_window(struct WinMeta * win_meta, struct Win * win) {
 // Draw win's content, including border and title (the latter dependent on space available for it).