{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/2247","repository_url":"https://api.github.com/repos/i3/i3","labels_url":"https://api.github.com/repos/i3/i3/issues/2247/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/2247/comments","events_url":"https://api.github.com/repos/i3/i3/issues/2247/events","html_url":"https://github.com/i3/i3/issues/2247","id":139520070,"number":2247,"title":"Bug or feature?: title indent on `split vertical|horizontal`","user":{"login":"Adaephon-GH","id":6870588,"avatar_url":"https://avatars.githubusercontent.com/u/6870588?v=3","gravatar_id":"","url":"https://api.github.com/users/Adaephon-GH","html_url":"https://github.com/Adaephon-GH","followers_url":"https://api.github.com/users/Adaephon-GH/followers","following_url":"https://api.github.com/users/Adaephon-GH/following{/other_user}","gists_url":"https://api.github.com/users/Adaephon-GH/gists{/gist_id}","starred_url":"https://api.github.com/users/Adaephon-GH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adaephon-GH/subscriptions","organizations_url":"https://api.github.com/users/Adaephon-GH/orgs","repos_url":"https://api.github.com/users/Adaephon-GH/repos","events_url":"https://api.github.com/users/Adaephon-GH/events{/privacy}","received_events_url":"https://api.github.com/users/Adaephon-GH/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/i3/i3/labels/4.12","name":"4.12","color":"009800"},{"url":"https://api.github.com/repos/i3/i3/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/i3/i3/labels/reproducible","name":"reproducible","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-09T09:17:43Z","updated_at":"2016-04-12T20:08:28Z","closed_at":null,"body":"Output of `i3 --moreversion 2>&- || i3 --version`:\r\n\r\nBinary i3 version:  4.12 (2016-03-06, branch \"4.12\") © 2009 Michael Stapelberg and contributors\r\nRunning i3 version: 4.12 (2016-03-06, branch \"4.12\") (pid 603)\r\nLoaded i3 config: /home/adaephon/.i3/config (Last modified: Mi 09 Mär 2016 08:20:50 CET, 2516 seconds ago)\r\n\r\nThe i3 binary you just called: /usr/bin/i3\r\nThe i3 binary you are running: i3\r\n\r\n\r\nURL to a logfile as per http://i3wm.org/docs/debugging.html:\r\n\r\nhttp://logs.i3wm.org/logs/5680316245082112.bz2\r\n\r\n\r\nI noticed that some of my window titles are indented, that is they are shifted slightly to the right. It seems that it mostly affects windows that are inside nested containers.\r\n\r\nTo confirm, I opened multiple multiple windows while creating a new split container `split vertical|horizontal` after each new window, alternating `horizontal` and `vertical` (although the results remain the same if only `horizontal` or `vertical` is used. \r\n\r\nThe result can be seen in this screen shot:\r\n\r\n![splitvhvhvetc](https://cloud.githubusercontent.com/assets/6870588/13629308/8e6ba420-e5d8-11e5-9811-401d0609cbb9.png)\r\n\r\nAs can be seen the indention grows with the level of nesting. The indention is added immediately when `split horizontal|vertical` is called.\r\n\r\nWhen changing the layout of the containers to stacked with `layout stacking` the indention vanishes:\r\n\r\n![stacked](https://cloud.githubusercontent.com/assets/6870588/13629419/53440f4e-e5d9-11e5-80f2-b4c936829a3a.png)\r\n\r\nBut it remains mostly when switching to tabbed layout (`layout tabbed`):\r\n\r\n![mostly_tabbed](https://cloud.githubusercontent.com/assets/6870588/13629453/86b2b95c-e5d9-11e5-97b4-86b4f568f28c.png)\r\n\r\nUnless, I change the layout on the outermost container to tabbed, too; then all indents vanish:\r\n\r\n![fully_tabbed](https://cloud.githubusercontent.com/assets/6870588/13629473/a80310e8-e5d9-11e5-9a78-ffbf4f29792a.png)\r\n\r\nOn the other hand, if I create the nested containers moving a container with split layout into a another container with split layout, there is no indention. This can be recreated by utlilizing only `layout splitv`, `focus parent`, `focus left` and `move right` to manipulate layout: \r\n\r\n1. Open two windows, \r\n2. `layout splitv`\r\n3. open window\r\n4. `move right`, \r\n5. `layout splitv`, \r\n6. `focus left`\r\n7. `focus parent` until the whole height is focused\r\n8. `move right`\r\n9. repeat from 3. \r\n\r\nI noticed that then doing `split vertical|horizontal` inside this nested container does **not** incur any indention.\r\n\r\nIn case it is important, I have\r\n\r\n    workspace_layout stacked\r\n    default_orientation vertical\r\n\r\nin my configuration.\r\n\r\n**Bug or feature?**\r\n\r\nSeing the - inconsistent - behaviour and the complete lack of any documentation on this, I guess this is a bug or at least unintentional feature.\r\n\r\nI can also see this being an interesting feature. It could be used to more easily discern how neighboring container relate to each other, especially when working with nested containers of the same type. In that case the indent should probably be configurable somehow, maybe a configurable string that is prepended for each nesting level (counting \"•\" is easier than guessing width of a whitespace).\r\n\r\nIn any case, I think it should be consistent: Either no indention at all or consistent indention across all container dependent only on nesting level and not on how they became nested."},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/209083197","html_url":"https://github.com/i3/i3/issues/2247#issuecomment-209083197","issue_url":"https://api.github.com/repos/i3/i3/issues/2247","id":209083197,"user":{"login":"Airblader","id":2392216,"avatar_url":"https://avatars.githubusercontent.com/u/2392216?v=3","gravatar_id":"","url":"https://api.github.com/users/Airblader","html_url":"https://github.com/Airblader","followers_url":"https://api.github.com/users/Airblader/followers","following_url":"https://api.github.com/users/Airblader/following{/other_user}","gists_url":"https://api.github.com/users/Airblader/gists{/gist_id}","starred_url":"https://api.github.com/users/Airblader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Airblader/subscriptions","organizations_url":"https://api.github.com/users/Airblader/orgs","repos_url":"https://api.github.com/users/Airblader/repos","events_url":"https://api.github.com/users/Airblader/events{/privacy}","received_events_url":"https://api.github.com/users/Airblader/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T20:08:28Z","updated_at":"2016-04-12T20:08:28Z","body":"On the subject of indentation, two more points:\r\n\r\n* I've just noticed a bug with the rendering of marks. Will provide a PR.\r\n* IMHO the title should be indented by the border width. We currently inset it by two (logical) pixels, hard-coded."}}