IssueRaiser

Add a portal to see currently open windows

I am a maintainer of the ActivityWatch project and we are polling the currently focused windows name and title. This is not an issue under Xorg but on Wayland this is a problem as there is no common API between compositors. I have discussed this shortly with both a wlroots and Gnome developer and they both seem to agree that exposing such data would be best solved by adding a xdg-desktop-portal API for this. Wlroots and KWin already have APIs for this (gnome-shell too but it's disabled by default) but they are all different, so a xdg-desktop-portal API would significantly simplify things. Suggestions on properties for windows, methods and signals that would be good to have: Window properties: - app_id (string) - title (string) - focused (bool) Signals: - FocusedApplicationChanged - RunningApplicationsChanged Methods: - GetRunningApplications (array of windows) Links to prior discussions with Gnome and wlroots developers: - https://gitlab.gnome.org/jadahl/gnome-shell/commit/a31e33d5813dfe7c77c1a3a58c9f107d5242b1cb#note_339241 - https://gitlab.gnome.org/GNOME/gnome-shell/issues/983 - https://www.reddit.com/r/linux/comments/as1dd0/we_are_the_sway_wlroots_developers_ask_us_anything/egskqq9/

Posted by johan-bjareholt on Feb 22, 2019, 10:00 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments

github (Sysadmin)

Add a portal to see currently open windows

johan-bjareholtFeb 22, 2019, 10:00 AM

I am a maintainer of the ActivityWatch project and we are polling the currently focused windows name and title. This is not an issue under Xorg but on Wayland this is a problem as there is no common API between compositors. I have discussed this shortly with both a wlroots and Gnome developer and they both seem to agree that exposing such data would be best solved by adding a xdg-desktop-portal API for this. Wlroots and KWin already have APIs for this (gnome-shell too but it's disabled by default) but they are all different, so a xdg-desktop-portal API would significantly simplify things. Suggestions on properties for windows, methods and signals that would be good to have: Window properties: - app_id (string) - title (string) - focused (bool) Signals: - FocusedApplicationChanged - RunningApplicationsChanged Methods: - GetRunningApplications (array of windows) Links to prior discussions with Gnome and wlroots developers: - https://gitlab.gnome.org/jadahl/gnome-shell/commit/a31e33d5813dfe7c77c1a3a58c9f107d5242b1cb#note_339241 - https://gitlab.gnome.org/GNOME/gnome-shell/issues/983 - https://www.reddit.com/r/linux/comments/as1dd0/we_are_the_sway_wlroots_developers_ask_us_anything/egskqq9/

Comments (0)

No comments yet. Start the discussion.

Comment on this issue