ref: 8456690db7e4fc2f5f17c70233e29aec233fec60
parent: 73e4e2d06233632508f9f430faa0f93c7f1e8078
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Jan 25 07:33:27 EST 2021
exit all threads when could not get the window
--- a/bar.c
+++ b/bar.c
@@ -114,6 +114,8 @@
Tm tm;
lockdisplay(display);
+ if(screen == nil)
+ return;
r = screen->r;
draw(screen, r, cback, nil, ZP);
@@ -303,7 +305,7 @@
case Eresize:
if(getwindow(display, Refnone) < 0)
- sysfatal("getwindow: %r");
+ threadexitsall(nil);
redraw();
place();
break;