{"action":"closed","issue":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/306","repository_url":"https://api.github.com/repos/SirCmpwn/sway","labels_url":"https://api.github.com/repos/SirCmpwn/sway/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/306/comments","events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/306/events","html_url":"https://github.com/SirCmpwn/sway/issues/306","id":121948900,"number":306,"title":"Handle changes in output resolution from clients","user":{"login":"fluxchief","id":2988703,"avatar_url":"https://avatars.githubusercontent.com/u/2988703?v=3","gravatar_id":"","url":"https://api.github.com/users/fluxchief","html_url":"https://github.com/fluxchief","followers_url":"https://api.github.com/users/fluxchief/followers","following_url":"https://api.github.com/users/fluxchief/following{/other_user}","gists_url":"https://api.github.com/users/fluxchief/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxchief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxchief/subscriptions","organizations_url":"https://api.github.com/users/fluxchief/orgs","repos_url":"https://api.github.com/users/fluxchief/repos","events_url":"https://api.github.com/users/fluxchief/events{/privacy}","received_events_url":"https://api.github.com/users/fluxchief/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-13T22:25:30Z","updated_at":"2016-02-24T21:35:10Z","closed_at":"2016-02-24T21:35:10Z","body":"Running sway in x11, initial resolution is the sum of my two monitors but is resized to only one:\r\n\r\n    [main.c:35] [wlc] Activating tty\r\n    [main.c:35] [wlc] WLC-1 Chose mode (0) 3360x1050\r\n    [handlers.c:118] Output 1 resolution changed to 3360 x 1050\r\n    ...\r\n    [main.c:35] [wlc] Added output (1)\r\n    [main.c:35] [wlc] become active\r\n    [handlers.c:118] Output 1 resolution changed to 1676 x 1011\r\n    ...\r\n\r\nHowever, swaybar gets different values (modifications in swaybar main.c):\r\n\r\n    ...\r\n    struct output_state *output = registry->outputs->items[desired_output];\r\n    sway_log(L_INFO, \"Detected output size: %dx%d\", output->width, output->height);\r\n\r\nOutput:\r\n\r\n    [main.c:245] Using output 0 of 1\r\n    [main.c:248] Detected output size: 3360x1050\r\n    [main.c:155] Running on output WLC-1\r\n\r\nExpected output: 'Detected output size: 1676x1011'\r\n"}}