added some window-exists? checks

This commit is contained in:
frese 2003-04-27 18:51:21 +00:00
parent dcbf6b7bbb
commit cdc6803b7d
1 changed files with 2 additions and 2 deletions

View File

@ -40,11 +40,11 @@
(let loop ((state 'up))
(let ((e (receive event-channel)))
(cond
((expose-event? e)
((and (expose-event? e) (window-exists? dpy window))
(draw-button button gc state)
(loop state))
((destroy-window-event? e) 'destroyed)
((button-event? e)
((and (button-event? e) (window-exists? dpy window))
(if (eq? (event-type button-press)
(button-event-type e))
(begin