Fixes bugs #2213 and #2214, improves the Android joystick code button handling
[X11] Ignore both NotifyGrab and NotifyUngrab modes in FocusIn/FocusOut events