{"action":"created","issue":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/575","repository_url":"https://api.github.com/repos/baskerville/bspwm","labels_url":"https://api.github.com/repos/baskerville/bspwm/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/baskerville/bspwm/issues/575/comments","events_url":"https://api.github.com/repos/baskerville/bspwm/issues/575/events","html_url":"https://github.com/baskerville/bspwm/issues/575","id":189113553,"number":575,"title":"Tiling windows sized incorrectly","user":{"login":"Baggykiin","id":1516985,"avatar_url":"https://avatars.githubusercontent.com/u/1516985?v=3","gravatar_id":"","url":"https://api.github.com/users/Baggykiin","html_url":"https://github.com/Baggykiin","followers_url":"https://api.github.com/users/Baggykiin/followers","following_url":"https://api.github.com/users/Baggykiin/following{/other_user}","gists_url":"https://api.github.com/users/Baggykiin/gists{/gist_id}","starred_url":"https://api.github.com/users/Baggykiin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baggykiin/subscriptions","organizations_url":"https://api.github.com/users/Baggykiin/orgs","repos_url":"https://api.github.com/users/Baggykiin/repos","events_url":"https://api.github.com/users/Baggykiin/events{/privacy}","received_events_url":"https://api.github.com/users/Baggykiin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-14T13:34:50Z","updated_at":"2016-11-14T17:47:41Z","closed_at":null,"body":"For some reason, bspwm seems to set the size of any tiling windows on my second monitor incorrectly, making them _way_ too wide (65522×1043 pixels), which causes the majority of the window to fall outside the bounds of my monitor. Many applications also crash or behave incorrectly because they can't handle a window that large.\r\n\r\nThe issue only seems to occur on tiling windows. Fullscreen windows will fill the monitor as expected and do not go out of bounds in any direction, and floating windows cannot be dragged off the monitor (except for to the left, onto my main monitor, of course).\r\n\r\nIf I rearrange the monitors so my second monitor is placed to the left of my first monitor, the tiling windows from the second monitor still go out of bounds on the right side, also obscuring the windows on my main monitor.\r\n\r\nXrandr seems to report the correct resolution:\r\n```\r\nScreen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767\r\neDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 350mm x 190mm\r\n   1920x1080     60.02*+\r\n   1400x1050     59.98  \r\n   1600x900      60.00  \r\n   1280x1024     60.02  \r\n   1280x960      60.00  \r\n   1368x768      60.00  \r\n   1280x720      60.00  \r\n   1024x768      60.00  \r\n   1024x576      60.00  \r\n   960x540       60.00  \r\n   800x600       60.32    56.25  \r\n   864x486       60.00  \r\n   640x480       59.94  \r\n   720x405       60.00  \r\n   640x360       60.00  \r\nHDMI1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 600mm x 340mm\r\n   2560x1440     59.95 +\r\n   1920x1200     59.95  \r\n   1920x1080     60.00*   50.00    50.00    59.94  \r\n   1920x1080i    60.00    50.00    59.94  \r\n   1600x1200     60.00  \r\n   1680x1050     59.88  \r\n   1280x1024     75.02    60.02  \r\n   1440x900      74.98    59.90  \r\n   1280x720      60.00    50.00    59.94  \r\n   1024x768      75.03    60.00  \r\n   800x600       75.00    60.32  \r\n   720x576       50.00  \r\n   720x576i      50.00  \r\n   720x480       60.00    59.94  \r\n   720x480i      60.00    59.94  \r\n   640x480       75.00    72.81    66.67    60.00    59.94  \r\n   720x400       70.08  \r\n```\r\n\r\nThe monitor has a native resolution of 2560x1440, and the issue seems to occur no matter what resolution I set it to. I currently have it set to 1920x1080 to match the resolution of my laptop, for convenience.\r\n\r\nRunning xwininfo on a tiling window going offscreen returns the following:\r\n\r\n```\r\nxwininfo: Window id: 0x800009 \"urxvt\"\r\n\r\n  Absolute upper-left X:  1925\r\n  Absolute upper-left Y:  28\r\n  Relative upper-left X:  1925\r\n  Relative upper-left Y:  28\r\n  Width: 65522\r\n  Height: 1043\r\n  Depth: 24\r\n  Visual: 0x20\r\n  Visual Class: TrueColor\r\n  Border width: 2\r\n  Class: InputOutput\r\n  Colormap: 0x22 (installed)\r\n  Bit Gravity State: ForgetGravity\r\n  Window Gravity State: NorthWestGravity\r\n  Backing Store State: NotUseful\r\n  Save Under State: no\r\n  Map State: IsViewable\r\n  Override Redirect State: no\r\n  Corners:  +1925+28  --63611+28  --63611-5  +1925-5\r\n  -geometry 9358x74+1925-5\r\n```\r\n\r\nEdit: `bspc query -T -m 1` output:\r\n```\r\n{\r\n    \"name\": \"1\",\r\n    \"id\": 4194307,\r\n    \"randrId\": 68,\r\n    \"wired\": true,\r\n    \"stickyCount\": 0,\r\n    \"windowGap\": 5,\r\n    \"borderWidth\": 2,\r\n    \"focusedDesktopId\": 4194309,\r\n    \"padding\": {\r\n        \"top\": 23,\r\n        \"right\": 1920,\r\n        \"bottom\": 0,\r\n        \"left\": 0\r\n    },\r\n    \"rectangle\": {\r\n        \"x\": 1920,\r\n        \"y\": 0,\r\n        \"width\": 1920,\r\n        \"height\": 1080\r\n    },\r\n    \"desktops\": [\r\n        {\r\n            \"name\": \"I\",\r\n            \"id\": 4194309,\r\n            \"layout\": \"tiled\",\r\n            \"windowGap\": 5,\r\n            \"borderWidth\": 2,\r\n            \"focusedNodeId\": 14680073,\r\n            \"padding\": {\r\n                \"top\": 0,\r\n                \"right\": 0,\r\n                \"bottom\": 0,\r\n                \"left\": 0\r\n            },\r\n            \"root\": {\r\n                \"id\": 14680073,\r\n                \"splitType\": \"vertical\",\r\n                \"splitRatio\": 0.5,\r\n                \"birthRotation\": 0,\r\n                \"vacant\": false,\r\n                \"hidden\": false,\r\n                \"sticky\": false,\r\n                \"private\": false,\r\n                \"locked\": false,\r\n                \"presel\": null,\r\n                \"rectangle\": {\r\n                    \"x\": 1925,\r\n                    \"y\": 28,\r\n                    \"width\": 65531,\r\n                    \"height\": 1052\r\n                },\r\n                \"firstChild\": null,\r\n                \"secondChild\": null,\r\n                \"client\": {\r\n                    \"className\": \"URxvt\",\r\n                    \"instanceName\": \"urxvt\",\r\n                    \"borderWidth\": 2,\r\n                    \"state\": \"tiled\",\r\n                    \"lastState\": \"tiled\",\r\n                    \"layer\": \"normal\",\r\n                    \"lastLayer\": \"normal\",\r\n                    \"urgent\": false,\r\n                    \"shown\": true,\r\n                    \"tiledRectangle\": {\r\n                        \"x\": 1925,\r\n                        \"y\": 28,\r\n                        \"width\": 65522,\r\n                        \"height\": 1043\r\n                    },\r\n                    \"floatingRectangle\": {\r\n                        \"x\": 2592,\r\n                        \"y\": 368,\r\n                        \"width\": 571,\r\n                        \"height\": 340\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/comments/260407169","html_url":"https://github.com/baskerville/bspwm/issues/575#issuecomment-260407169","issue_url":"https://api.github.com/repos/baskerville/bspwm/issues/575","id":260407169,"user":{"login":"Baggykiin","id":1516985,"avatar_url":"https://avatars.githubusercontent.com/u/1516985?v=3","gravatar_id":"","url":"https://api.github.com/users/Baggykiin","html_url":"https://github.com/Baggykiin","followers_url":"https://api.github.com/users/Baggykiin/followers","following_url":"https://api.github.com/users/Baggykiin/following{/other_user}","gists_url":"https://api.github.com/users/Baggykiin/gists{/gist_id}","starred_url":"https://api.github.com/users/Baggykiin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baggykiin/subscriptions","organizations_url":"https://api.github.com/users/Baggykiin/orgs","repos_url":"https://api.github.com/users/Baggykiin/repos","events_url":"https://api.github.com/users/Baggykiin/events{/privacy}","received_events_url":"https://api.github.com/users/Baggykiin/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T17:47:41Z","updated_at":"2016-11-14T17:47:41Z","body":"That does indeed seem to fix the issue for me. "}}
{"actor":{"display_login":"Baggykiin"}}