{"action":"closed","issue":{"url":"https://api.github.com/repos/swaywm/wlroots/issues/550","repository_url":"https://api.github.com/repos/swaywm/wlroots","labels_url":"https://api.github.com/repos/swaywm/wlroots/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/swaywm/wlroots/issues/550/comments","events_url":"https://api.github.com/repos/swaywm/wlroots/issues/550/events","html_url":"https://github.com/swaywm/wlroots/issues/550","id":286027315,"node_id":"MDU6SXNzdWUyODYwMjczMTU=","number":550,"title":"wlr-output-layout: relative auto layouts","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":[{"id":795038724,"node_id":"MDU6TGFiZWw3OTUwMzg3MjQ=","url":"https://api.github.com/repos/swaywm/wlroots/labels/wlr-output-layout","name":"wlr-output-layout","color":"c7db6f","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-04T15:48:02Z","updated_at":"2018-06-20T13:52:19Z","closed_at":"2018-06-20T13:52:19Z","author_association":"MEMBER","body":"Support adding an output to the layout in a position relative to another output (sort of like `xrandr --output op1 --left-of op2`).\r\n\r\nThe layout should automatically adjust to make sure the output comes as close as possible to being in the relative location adjacent to the absolute output without overlapping another output.\r\n\r\n```c\r\nenum wlr_output_layout_relative_position {\r\n    WLR_OUTPUT_LAYOUT_RELATIVE_POSITION_LEFT_OF,\r\n    WLR_OUTPUT_LAYOUT_RELATIVE_POSITION_RIGHT_OF,\r\n    WLR_OUTPUT_LAYOUT_RELATIVE_POSITION_ABOVE,\r\n    WLR_OUTPUT_LAYOUT_RELATIVE_POSITION_BELOW,\r\n};\r\n\r\n/**\r\n * Add an auto configured output to the layout relative to another output.\r\n * This will place the relative output as close as possible to the border of\r\n * the absolute output without overlapping another output. The output layout\r\n * will adjust dynamically to keep the relative output in this position when\r\n * the absolute output changes coordinates. If either output is not in the\r\n * output layout, it will be added. If the position of the relative output is\r\n * set to absolute coordinates, it will become manually configured.\r\n*/\r\nwlr_output_layout_add_auto_relative(struct wlr_output *output_relative,\r\n        enum wlr_output_layout_relative_position position,\r\n        struct wlr_output *output_absolute);\r\n```"}}
{"actor":{"display_login":"SirCmpwn"}}