{"action":"created","issue":{"url":"https://api.github.com/repos/hlissner/doom-emacs/issues/458","repository_url":"https://api.github.com/repos/hlissner/doom-emacs","labels_url":"https://api.github.com/repos/hlissner/doom-emacs/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/hlissner/doom-emacs/issues/458/comments","events_url":"https://api.github.com/repos/hlissner/doom-emacs/issues/458/events","html_url":"https://github.com/hlissner/doom-emacs/issues/458","id":303912619,"number":458,"title":"Mode line doesn't follow focus when switching frames with keyboard","user":{"login":"jhacksworth","id":286057,"avatar_url":"https://avatars2.githubusercontent.com/u/286057?v=4","gravatar_id":"","url":"https://api.github.com/users/jhacksworth","html_url":"https://github.com/jhacksworth","followers_url":"https://api.github.com/users/jhacksworth/followers","following_url":"https://api.github.com/users/jhacksworth/following{/other_user}","gists_url":"https://api.github.com/users/jhacksworth/gists{/gist_id}","starred_url":"https://api.github.com/users/jhacksworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhacksworth/subscriptions","organizations_url":"https://api.github.com/users/jhacksworth/orgs","repos_url":"https://api.github.com/users/jhacksworth/repos","events_url":"https://api.github.com/users/jhacksworth/events{/privacy}","received_events_url":"https://api.github.com/users/jhacksworth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-09T17:08:24Z","updated_at":"2018-03-09T18:18:06Z","closed_at":null,"author_association":"NONE","body":"\r\n### Observed behavior\r\n\r\nMode line doesn't fully activate after changing to other frame with the keyboard. You need to use the mouse or trigger a window layout change to fully activate the mode line.\r\n\r\nFor example, starting out, the left frame has focus and the active buffer, everything looks as it should:\r\n\r\n![left-frame-focus](https://user-images.githubusercontent.com/286057/37218119-8566d652-238d-11e8-96a1-cb5b5d416db7.png)\r\n\r\nSwitching to the right (other) frame with `C-x 5 o` or ``Command-` ``, so that the right frame has focus and the active buffer, you see that the mode line isn't fully active. For example, the mode line is is still using `doom-modeline-inactive-bar`:\r\n\r\n![right-frame-focus](https://user-images.githubusercontent.com/286057/37218131-8c8c61a4-238d-11e8-9bc4-0d2cff624b53.png)\r\n\r\n### Expected behavior\r\n\r\nThe mode line should be fully active in the buffer that has focus.\r\n\r\n### Steps to reproduce\r\n\r\n1. Create two frames\r\n2. Switch between the frames with keyboard commands, e.g., `C-x 5 o` \r\n3. Note that you need to either use the mouse and click in the buffer to fully activate the mode line, or trigger a command that modifies the window layout.\r\n\r\n### System information\r\n\r\nThis happens in develop and master branches. Here is some info from my develop branch install:\r\n\r\n```\r\n- OS: darwin (x86_64-apple-darwin17.4.0)\r\n- Emacs: 26.0.91 (Feb 16, 2018)\r\n- Doom: 2.0.9 (develop https://github.com/hlissner/doom-emacs/commit/4dd6bcdc5ffa7eadd15f47ac38c9f4c59a016ca5)\r\n- Graphic display: t (daemon: nil)\r\n- System features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES LCMS2\r\n```\r\n\r\n### Thanks\r\n\r\nYou've done an amazing job with Doom Emacs. :thumbsup:"},"comment":{"url":"https://api.github.com/repos/hlissner/doom-emacs/issues/comments/371899794","html_url":"https://github.com/hlissner/doom-emacs/issues/458#issuecomment-371899794","issue_url":"https://api.github.com/repos/hlissner/doom-emacs/issues/458","id":371899794,"user":{"login":"hlissner","id":510883,"avatar_url":"https://avatars2.githubusercontent.com/u/510883?v=4","gravatar_id":"","url":"https://api.github.com/users/hlissner","html_url":"https://github.com/hlissner","followers_url":"https://api.github.com/users/hlissner/followers","following_url":"https://api.github.com/users/hlissner/following{/other_user}","gists_url":"https://api.github.com/users/hlissner/gists{/gist_id}","starred_url":"https://api.github.com/users/hlissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlissner/subscriptions","organizations_url":"https://api.github.com/users/hlissner/orgs","repos_url":"https://api.github.com/users/hlissner/repos","events_url":"https://api.github.com/users/hlissner/events{/privacy}","received_events_url":"https://api.github.com/users/hlissner/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T18:18:06Z","updated_at":"2018-03-09T18:18:06Z","author_association":"OWNER","body":"Does this fix your issue?\r\n\r\n```elisp\r\n(advice-add #'select-frame :after #'+doom-modeline|set-selected-window)\r\n```"}}
{"actor":{"display_login":"hlissner"}}