Right click in unfocused window fails to show context menu with per-window input sources
Enable per-window input sources - GNOME Control Center -> Region & Languages -> Allow different sources for each window.
Open multiple applications/windows that have right click context menu. I am testing with GNOME Terminal.
Right click in unfocused window. Window gets focus, but context menu is not shown.
GTK application logs critical warning:
g_object_set_data: assertion 'G_IS_OBJECT (object)' failed
Seems to be this line:
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gtk/gtkmenu.c#L3356
I believe that problem is caused by GNOME Shell grabbing keyboard:
https://gitlab.gnome.org/GNOME/gnome-shell/blob/master/js/ui/status/keyboard.js#L450
https://gitlab.gnome.org/GNOME/gnome-shell/blob/master/js/ui/status/keyboard.js#L706
GTK fails to show menu because it failed to grab keyboard:
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gtk/gtkmenu.c#L1920