I think you can not edit comments. Yes, mutter is window manager and we are duplicating some functionality that is in mutter and/or in gnome- shell.
I don't remember why it was not implemented, but we should be able to use gdk and/or x11 to know focused window. https://standards.freedesktop.org/wm-spec/wm-spec-1.4.html#idm139915844368784 _NET_ACTIVE_WINDOW probably should be enough. If per window input sources are enabled then we should listen to this property changes to know when active window changes and do same that is done in _setPerWindowInputSource. So we probably should subscribe to related events on root window. Using gdk_window_add_filter add callback. If it is property change event (might be wrong) then use gdk_screen_get_active_window to get active window: https://developer.gnome.org/gdk3/stable/GdkScreen.html#gdk-screen-get-active-window If you really want to try I would suggest you to use IRC to ask more specific questions and I will try to help. If you dont use IRC then maybe skype? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769838 Title: Input source options does not work on Bionic with gnome-flashback To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-flashback/+bug/1769838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs