diff --git a/graphics/grX11su1.c b/graphics/grX11su1.c index e4485698..560ec71e 100644 --- a/graphics/grX11su1.c +++ b/graphics/grX11su1.c @@ -835,6 +835,8 @@ grX11Stdin() entry = HashLookOnly(&grX11WindowTable,grCurrent.window); w = (entry)?(MagWindow *)HashGetValue(entry):0; grCurrent.mw=w; + if(!w) + break; screenRect.r_xbot = ExposeEvent->x; screenRect.r_xtop = ExposeEvent->x+ExposeEvent->width;