Fix for XQuartz + OpenGL: if window unmapped before canvas deleted,

making GL context current hangs ROOT completely.
Fix for GL-pad.