Thanks!

Looking at these briefly I can see why this was not implemented at first.
As far as I can tell it is hard to tell which window has the focus right now.

The .js version uses libmutter mutter-3.28.1/src/core/display-private.h, which 
has an interesting comment on this:
"  /* Our best guess as to the "currently" focused window (that is, the
   * window that we expect will be focused at the point when the X
   * server processes our next request), and the serial of the request
   * or event that caused this.
   */
  MetaWindow *focus_window;
"
so it is already a best guess only. Maybe gnome-flashback should depend on 
libmutter and use this MetaDisplay's MetaWindow to get the currently focused 
window? Or maybe there is an easier way using gdk/gtk to get the currently 
focused window?

IDK. Unfortunately this does not seem to be a trivial issue
unfortunately...

-- 
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

Reply via email to