I want to grab it when user clicks on the window and ungrab when Esc is pressed. I could keep a boolean flag in my code but what if the window loses focus in some unexpected way and the mouse becomes released without me knowing about it?
Asked
Active
Viewed 63 times