backend/x11: pause rendering loop when completely hidden
We could stop sending frame
events to the compositor when the X11 window is completely hidden.
I'm not sure how we can detect that. Maybe we can detect when we are minimized with Map/Unmap?
glfw seems to be getting the width/height from XGetWindowAttributes
, and glfw apps can stop rendering if the size is zero.