{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/1668","repository_url":"https://api.github.com/repos/i3/i3","labels_url":"https://api.github.com/repos/i3/i3/issues/1668/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/1668/comments","events_url":"https://api.github.com/repos/i3/i3/issues/1668/events","html_url":"https://github.com/i3/i3/issues/1668","id":69452550,"number":1668,"title":"enhancement: window title changes should trigger window swallowing (layout saving)","user":{"login":"stapelberg","id":55506,"avatar_url":"https://avatars.githubusercontent.com/u/55506?v=3","gravatar_id":"","url":"https://api.github.com/users/stapelberg","html_url":"https://github.com/stapelberg","followers_url":"https://api.github.com/users/stapelberg/followers","following_url":"https://api.github.com/users/stapelberg/following{/other_user}","gists_url":"https://api.github.com/users/stapelberg/gists{/gist_id}","starred_url":"https://api.github.com/users/stapelberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapelberg/subscriptions","organizations_url":"https://api.github.com/users/stapelberg/orgs","repos_url":"https://api.github.com/users/stapelberg/repos","events_url":"https://api.github.com/users/stapelberg/events{/privacy}","received_events_url":"https://api.github.com/users/stapelberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/i3/i3/labels/accepted","name":"accepted","color":"fbca04"},{"url":"https://api.github.com/repos/i3/i3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-19T18:42:41Z","updated_at":"2016-04-04T17:51:59Z","closed_at":null,"body":"@teto reports that i3 doesn’t swallow urxvt with the following layout JSON file:\r\n\r\n```json\r\n// vim:ts=4:sw=4:et\r\n{\r\n    \"border\": \"pixel\",\r\n    \"current_border_width\": 1,\r\n    \"floating\": \"auto_off\",\r\n    \"geometry\": {\r\n       \"height\": 388,\r\n       \"width\": 734,\r\n       \"x\": 0,\r\n       \"y\": 0\r\n    },\r\n    \"name\": \"/home/teto\",\r\n    \"percent\": 1,\r\n    \"swallows\": [\r\n       {\r\n        \"class\": \"^URxvt$\",\r\n       // \"instance\": \"^rxvt\\\\-unicode$\",\r\n        \"title\": \"^/home/teto/dce$\"                                                                      \r\n       // \"transient_for\": \"^$\"\r\n       }\r\n    ],\r\n    \"type\": \"con\"\r\n}\r\n```\r\n\r\n@teto starts urxvt like this:\r\n\r\n```bash\r\n#!/bin/sh\r\n\r\ni3-msg \"workspace 9; append_layout $HOME/.i3/test.json\"                                                  \r\n\r\nurxvt -cd $HOME/dce\r\n```\r\n\r\nHaving a look at the logfile reveals that urxvt first starts up with a different title and later changes its `_NET_WM_NAME` property to set the correct title.\r\n\r\ni3 should, once it got the new title, check whether the window can be matched by any of the placeholders and swallow it if so.\r\n\r\nThis affects not only window titles, but all properties that can be used to swallow a window."},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/205414266","html_url":"https://github.com/i3/i3/issues/1668#issuecomment-205414266","issue_url":"https://api.github.com/repos/i3/i3/issues/1668","id":205414266,"user":{"login":"teto","id":886074,"avatar_url":"https://avatars.githubusercontent.com/u/886074?v=3","gravatar_id":"","url":"https://api.github.com/users/teto","html_url":"https://github.com/teto","followers_url":"https://api.github.com/users/teto/followers","following_url":"https://api.github.com/users/teto/following{/other_user}","gists_url":"https://api.github.com/users/teto/gists{/gist_id}","starred_url":"https://api.github.com/users/teto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teto/subscriptions","organizations_url":"https://api.github.com/users/teto/orgs","repos_url":"https://api.github.com/users/teto/repos","events_url":"https://api.github.com/users/teto/events{/privacy}","received_events_url":"https://api.github.com/users/teto/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T17:51:59Z","updated_at":"2016-04-04T17:51:59Z","body":"With termite I can override the role with \"-r\". I tried modifying the i3-save-tree output with matching \"role\" and it works as expected.\r\nI leave this open as I think it would still be nice to have."}}