focus issue with widgets getting focus on keyboard grab
Hello,
One thing which was not exercised in my tests for MR !120 (merged) is when a gtk widget gets focus thanks to a keyboard grab. For instance, when pressing alt-F1 in MATE to open the application menu, windows:activate isn't emitted, and when the screen saver triggers, typing doesn't work. Indeed, in that case has_focus is true and has_window_focus is false, so the patch broke that case: the widget should think it has focus, otherwise it won't take keyboard input, emit accessibility window:activate event, etc. The patch below fixes that in my tests, I'll wait for my colleague to confirm the fix before submitting pull requests for gtk2/3/4
Samuel