After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788511 - Add support for retrieving the active window
Add support for retrieving the active window
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: wayland
unspecified
Other All
: Normal enhancement
: ---
Assigned To: mutter-maint
mutter-maint
triaged
Depends on:
Blocks:
 
 
Reported: 2017-10-04 12:02 UTC by Erik Bjäreholt
Modified: 2021-07-05 13:45 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Erik Bjäreholt 2017-10-04 12:02:52 UTC
Hello wonderful Gnome/mutter devs,

I'm developing an open source time tracking tool called ActivityWatch: https://github.com/ActivityWatch/activitywatch

A large part of it depends on tracking the active window, but with Wayland that is no longer possible. So now I'm wondering if there is any chance one could get that information out of mutter?

I created this question on Stack Overflow a while back but that contains more details: https://stackoverflow.com/q/45465016/965332

Sorry if this is the wrong place to ask, I figured it would either be here or the mailing list (already tried IRC).


Thanks for all the great work you're doing!
Comment 1 Jonas Ådahl 2017-10-04 20:39:23 UTC
Clients in Wayland are completely isolated from each other, and that is not something that will change, thus one client will not receive information about any other. So there will not be a Wayland solution available.

With that said, there are some ideas floating around to expose various xdotool like features in a different way. Nobody is working on it though, and it is not directly related to mutter, bur rather something mutter would implement. Read more about it here: https://lists.freedesktop.org/archives/wayland-devel/2017-March/033514.html and here: https://github.com/whot/woodotool

Note that the above stuff is so far only about the input event injection part, so consider the window state introspection even less being worked on.
Comment 2 Jonas Ådahl 2018-12-13 16:33:40 UTC
Marking as triaged. It should be moved to gnome-shell after migration, as gnome-shell is in a better situaton to provide introspection.
Comment 3 GNOME Infrastructure Team 2021-07-05 13:45:49 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/mutter/-/issues/

Thank you for your understanding and your help.