{"action":"created","issue":{"url":"https://api.github.com/repos/swaywm/sway/issues/1588","repository_url":"https://api.github.com/repos/swaywm/sway","labels_url":"https://api.github.com/repos/swaywm/sway/issues/1588/labels{/name}","comments_url":"https://api.github.com/repos/swaywm/sway/issues/1588/comments","events_url":"https://api.github.com/repos/swaywm/sway/issues/1588/events","html_url":"https://github.com/swaywm/sway/issues/1588","id":296147449,"node_id":"MDU6SXNzdWUyOTYxNDc0NDk=","number":1588,"title":"Multiseat and IPC","user":{"login":"acrisci","id":3258764,"node_id":"MDQ6VXNlcjMyNTg3NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3258764?v=4","gravatar_id":"","url":"https://api.github.com/users/acrisci","html_url":"https://github.com/acrisci","followers_url":"https://api.github.com/users/acrisci/followers","following_url":"https://api.github.com/users/acrisci/following{/other_user}","gists_url":"https://api.github.com/users/acrisci/gists{/gist_id}","starred_url":"https://api.github.com/users/acrisci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acrisci/subscriptions","organizations_url":"https://api.github.com/users/acrisci/orgs","repos_url":"https://api.github.com/users/acrisci/repos","events_url":"https://api.github.com/users/acrisci/events{/privacy}","received_events_url":"https://api.github.com/users/acrisci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-11T00:32:50Z","updated_at":"2018-11-22T08:14:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The focus model for wlroots makes things a bit more complicated to accommodate multiple seats. We can no longer assume that there is a single focused container, but rather each seat has its own focus state for the whole tree.\r\n\r\nThe problem is that to report this info breaks every ipc library that operates on this assumption.\r\n\r\nWe discussed having different types when sway is configured with a single seat than if it is multiseat, but we wantto avoid variant types because they make ipc libraries difficult to use and write.\r\n\r\nOne solution would be for the `get_tree` command to take a seat parameter and report focus for only that seat (similar for how we plan to do it for commands). Example:\r\n\r\n```\r\nswaymsg -t get_tree --seat=seat0\r\n```\r\n\r\nAnother solution might be to change how focus is reported from a boolean to a list of seat names, with an empty list meaning it is not focused on any seat.\r\n\r\nIt's difficult to know what the best solution is because nobody has come up with applications for multiseat ipc.\r\n\r\nThere are probably other good solutions people can think of too.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swaywm/sway/issues/comments/440947336","html_url":"https://github.com/swaywm/sway/issues/1588#issuecomment-440947336","issue_url":"https://api.github.com/repos/swaywm/sway/issues/1588","id":440947336,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDk0NzMzNg==","user":{"login":"emersion","id":506932,"node_id":"MDQ6VXNlcjUwNjkzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/506932?v=4","gravatar_id":"","url":"https://api.github.com/users/emersion","html_url":"https://github.com/emersion","followers_url":"https://api.github.com/users/emersion/followers","following_url":"https://api.github.com/users/emersion/following{/other_user}","gists_url":"https://api.github.com/users/emersion/gists{/gist_id}","starred_url":"https://api.github.com/users/emersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emersion/subscriptions","organizations_url":"https://api.github.com/users/emersion/orgs","repos_url":"https://api.github.com/users/emersion/repos","events_url":"https://api.github.com/users/emersion/events{/privacy}","received_events_url":"https://api.github.com/users/emersion/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T08:14:53Z","updated_at":"2018-11-22T08:14:53Z","author_association":"MEMBER","body":">had to find out that the tree returned from sway ipc always only has one focused window in it.\r\n\r\nYes, this is related and this is the issue discussed here. No, we haven't decided how to fix it yet. Some ideas are in the first post."}}
{"actor":{"display_login":"emersion"}}