85c7669ad2
Once a window is invalid gl-x11::get_window_geometry will return 0 so just check if the returned geometry is a valid pointer before trying to get its width/height.