The focus_pointer only pointer was only cleared when the window existed, which caused a dangling focus_pointer when closing a window.
The focus_pointer only pointer was only cleared when the window existed, which caused a dangling focus_pointer when closing a window.