Update the cursor for each window on receiving an X11 event, don't wait for the SetCursor call. Added EnterNotify handler to set the cursor on window map/unmap.