diff --git a/graphics/grX11su1.c b/graphics/grX11su1.c index 560ec71e..181143ba 100644 --- a/graphics/grX11su1.c +++ b/graphics/grX11su1.c @@ -890,6 +890,8 @@ grX11Stdin() entry = HashLookOnly(&grX11WindowTable, VisEvent->window); w = (entry)?(MagWindow *)HashGetValue(entry):0; + if(!w) + break; switch(VisEvent->state) {