{"action":"created","issue":{"url":"https://api.github.com/repos/wasamasa/shackle/issues/39","repository_url":"https://api.github.com/repos/wasamasa/shackle","labels_url":"https://api.github.com/repos/wasamasa/shackle/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/wasamasa/shackle/issues/39/comments","events_url":"https://api.github.com/repos/wasamasa/shackle/issues/39/events","html_url":"https://github.com/wasamasa/shackle/issues/39","id":175178494,"number":39,"title":"Windows layouts depends on number of windows and the window selected","user":{"login":"Kungsgeten","id":3976377,"avatar_url":"https://avatars.githubusercontent.com/u/3976377?v=3","gravatar_id":"","url":"https://api.github.com/users/Kungsgeten","html_url":"https://github.com/Kungsgeten","followers_url":"https://api.github.com/users/Kungsgeten/followers","following_url":"https://api.github.com/users/Kungsgeten/following{/other_user}","gists_url":"https://api.github.com/users/Kungsgeten/gists{/gist_id}","starred_url":"https://api.github.com/users/Kungsgeten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kungsgeten/subscriptions","organizations_url":"https://api.github.com/users/Kungsgeten/orgs","repos_url":"https://api.github.com/users/Kungsgeten/repos","events_url":"https://api.github.com/users/Kungsgeten/events{/privacy}","received_events_url":"https://api.github.com/users/Kungsgeten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-06T07:30:27Z","updated_at":"2016-09-06T07:47:07Z","closed_at":null,"body":"Hi!\r\n\r\nI have the following `shackle` setup:\r\n\r\n```\r\n(use-package shackle :ensure t\r\n  :defines shackle-rules\r\n  :init\r\n  (setq shackle-rules '((\"\\\\`\\\\*helm.*?\\\\*\\\\'\" :regexp t :align t :size 0.4)\r\n                        (\"\\\\`\\\\*swiper*?\\\\*\\\\'\" :regexp t :align t :size 0.4)))\r\n  :config\r\n  (shackle-mode))\r\n```\r\n\r\nIf I have a window layout consisting of a single window, then after say `helm-M-x` the layout will consist of three windows, like this:\r\n\r\n```\r\n+-----------------------------+                 +-----------------------------+\r\n|                             |                 | Original window             |\r\n| Original window             | helm-M-x        +-----------------------------+\r\n|                             |                 | Original window             |\r\n|                             +---------------->|                             |\r\n|                             |                 +-----------------------------+\r\n|                             |                 | Helm                        |\r\n|                             |                 |                             |\r\n|                             |                 |                             |\r\n+-----------------------------+                 +-----------------------------+\r\n```\r\n\r\nWhy is this? Shouldn't I get only two windows?\r\n\r\nIf I have three windows, configured like below, it works fine:\r\n\r\n```\r\n+---------------+-------------+                 +--------------+--------------+\r\n| Window 1      | Window 3    |                 | Window 1     | Window 3     |\r\n|               |             | helm-M-x        +--------------+              |\r\n|               |             |                 | Window 2     |              |\r\n+---------------+             +---------------->|              |              |\r\n| Window 2      |             |                 +--------------+--------------+\r\n| (active)      |             |                 | Helm                        |\r\n|               |             |                 |                             |\r\n|               |             |                 |                             |\r\n+---------------+-------------+                 +-----------------------------+\r\n```\r\n\r\nBut if I have the same layout, but `Window 3` as the active window, the result will be this:\r\n\r\n```\r\n+---------------+-------------+                 +-----------------------------+\r\n| Window 1      | Window 3    |                 | Window 3                    |\r\n|               | (active)    | helm-M-x        |                             |\r\n|               |             |                 |                             |\r\n+---------------+             +---------------->|                             |\r\n| Window 2      |             |                 +-----------------------------+\r\n|               |             |                 | Helm                        |\r\n|               |             |                 |                             |\r\n|               |             |                 |                             |\r\n+---------------+-------------+                 +-----------------------------+\r\n```\r\n\r\nTo me it feels like this configuration should be the same as the previous example?\r\n\r\nThank you for a great package!\r\n\r\nI'm using 64-bit GNU Emacs 25.0.94.2 on a Windows machine."},"comment":{"url":"https://api.github.com/repos/wasamasa/shackle/issues/comments/244874769","html_url":"https://github.com/wasamasa/shackle/issues/39#issuecomment-244874769","issue_url":"https://api.github.com/repos/wasamasa/shackle/issues/39","id":244874769,"user":{"login":"wasamasa","id":3588994,"avatar_url":"https://avatars.githubusercontent.com/u/3588994?v=3","gravatar_id":"","url":"https://api.github.com/users/wasamasa","html_url":"https://github.com/wasamasa","followers_url":"https://api.github.com/users/wasamasa/followers","following_url":"https://api.github.com/users/wasamasa/following{/other_user}","gists_url":"https://api.github.com/users/wasamasa/gists{/gist_id}","starred_url":"https://api.github.com/users/wasamasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasamasa/subscriptions","organizations_url":"https://api.github.com/users/wasamasa/orgs","repos_url":"https://api.github.com/users/wasamasa/repos","events_url":"https://api.github.com/users/wasamasa/events{/privacy}","received_events_url":"https://api.github.com/users/wasamasa/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T07:47:07Z","updated_at":"2016-09-06T07:47:07Z","body":"That's most likely the same issue as in #28.  Please check whether `(setq helm-display-function 'pop-to-buffer)` fixes things."}}
{"actor":{"display_login":"wasamasa"}}