GTK/OSX - problem with event handling on app start if mouse is active during init
I found a very annoying issue - if there are mouse events during app startup (e.g. mouse clicks, etc) application starts in the state where mouse is not working. As workaround it is possible to change focus to another windows (CMD+TAB) and back.
I found that code which is responsive for that is in the https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gdk/quartz/gdkevents-quartz.c#L1561 and if i am commenting out https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gdk/quartz/gdkevents-quartz.c#L1564 it starts to work as expected. However, i dont really understand why [NSApp activateIgnoringOtherApps:YES];
is not changing NSApp isActive
. @jralls anything you can help with?
Edited by Alex Samorukov