{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3/issues/2609","repository_url":"https://api.github.com/repos/i3/i3","labels_url":"https://api.github.com/repos/i3/i3/issues/2609/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/2609/comments","events_url":"https://api.github.com/repos/i3/i3/issues/2609/events","html_url":"https://github.com/i3/i3/issues/2609","id":196304371,"number":2609,"title":"Regression: unable to define bindings via `bindcode` within a `mode`","user":{"login":"maximbaz","id":1177900,"avatar_url":"https://avatars.githubusercontent.com/u/1177900?v=3","gravatar_id":"","url":"https://api.github.com/users/maximbaz","html_url":"https://github.com/maximbaz","followers_url":"https://api.github.com/users/maximbaz/followers","following_url":"https://api.github.com/users/maximbaz/following{/other_user}","gists_url":"https://api.github.com/users/maximbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/maximbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximbaz/subscriptions","organizations_url":"https://api.github.com/users/maximbaz/orgs","repos_url":"https://api.github.com/users/maximbaz/repos","events_url":"https://api.github.com/users/maximbaz/events{/privacy}","received_events_url":"https://api.github.com/users/maximbaz/received_events","type":"User","site_admin":false},"labels":[{"id":477911496,"url":"https://api.github.com/repos/i3/i3/labels/4.13","name":"4.13","color":"009800","default":false},{"id":173539450,"url":"https://api.github.com/repos/i3/i3/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-18T22:41:45Z","updated_at":"2016-12-21T19:13:13Z","closed_at":null,"body":"Output of `i3 --moreversion 2>&- || i3 --version`:\r\n\r\n```\r\nλ:  i3 --moreversion 2>&- || i3 --version\r\nBinary i3 version:  4.13 (2016-11-08) © 2009 Michael Stapelberg and contributors\r\nRunning i3 version: 4.13 (2016-11-08) (pid 2030)o abort…)\r\nLoaded i3 config: /home/maximbaz/.i3/config (Last modified: Sun 18 Dec 2016 11:24:06 PM CET, 76 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/5636647567753216.bz2\r\n\r\n**What I did:**\r\n\r\nUse the following `.i3/config`:\r\n\r\n```\r\nset $mod Mod4\r\n\r\nset $mode_resize Resize window\r\nmode \"$mode_resize\" {\r\n  bindcode 43            resize grow   left  10 px or 10 ppt\r\n  bindcode 46            resize shrink left  10 px or 10 ppt\r\n\r\n  # bindsym h            resize grow   left  10 px or 10 ppt\r\n  # bindsym l            resize shrink left  10 px or 10 ppt\r\n\r\n  bindsym Return mode \"default\"\r\n  bindsym Escape mode \"default\"\r\n}\r\nbindcode $mod+27 mode \"$mode_resize\"\r\n```\r\n\r\n1. Hit `Mod4+R` - make sure i3wm processes my binding and enters the \"Resize\" mode.\r\n2. Hit `L` or `H` keys in an attempt to resize the window.\r\n\r\n**What I saw:**\r\n\r\n1. `Mod4+R` worked fine, I entered the \"Resize\" mode, so normal `bindcode` works.\r\n2. The `L` or `H` keys do not resize the window, simply nothing happens as I press them, so `bindcode` does not work within a `mode`.\r\n\r\n**What I expected instead:**\r\n\r\nThe `L` and `H` keys work when the configuration consists of `bindcode` definitions.\r\n\r\n**Extra info:**\r\n\r\nComment out `bindcode` definitions inside the `mode` and uncomment the `bindsym`.\r\nNow `L` and `H` keys do resize the window as expected, so `bindsym` works within a `mode`.\r\n\r\n**This is a regression from 4.12.1**. I do not change the config, install `4.12.1`, restart `i3` and the keys `L` and `H` work as expected with the `bindcode` definition.\r\n\r\n```\r\nλ:  i3 --moreversion 2>&- || i3 --version\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 2030)\r\nLoaded i3 config: /home/maximbaz/.i3/config (Last modified: Sun 18 Dec 2016 11:24:06 PM CET, 998 seconds ago)\r\n\r\nThe i3 binary you just called: /usr/bin/i3\r\nThe i3 binary you are running: i3\r\n```"},"comment":{"url":"https://api.github.com/repos/i3/i3/issues/comments/268613348","html_url":"https://github.com/i3/i3/issues/2609#issuecomment-268613348","issue_url":"https://api.github.com/repos/i3/i3/issues/2609","id":268613348,"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-12-21T19:13:13Z","updated_at":"2016-12-21T19:13:13Z","body":"@maximbaz Somebody on reddit reported a similar issue where some bindcode commands didn't work, though it had nothing to do with binding modes. They reported that while 4.13 has the issue, the current `next` branch doesn't.\r\n\r\nI'm not aware of any change we pushed since 4.13 that would fix this, but if you can give it a shot and – if it works now – give it a git bisect, that'd be great."}}
{"actor":{"display_login":"Airblader"}}