Workaround for "lockcursor = no mouse input" bug