{"action":"opened","issue":{"url":"https://api.github.com/repos/i3/i3/issues/2297","repository_url":"https://api.github.com/repos/i3/i3","labels_url":"https://api.github.com/repos/i3/i3/issues/2297/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3/issues/2297/comments","events_url":"https://api.github.com/repos/i3/i3/issues/2297/events","html_url":"https://github.com/i3/i3/issues/2297","id":148237186,"number":2297,"title":"Window focusing issue when moving mouse between X11 displays (:0.x)","user":{"login":"i336","id":9411979,"avatar_url":"https://avatars.githubusercontent.com/u/9411979?v=3","gravatar_id":"","url":"https://api.github.com/users/i336","html_url":"https://github.com/i336","followers_url":"https://api.github.com/users/i336/followers","following_url":"https://api.github.com/users/i336/following{/other_user}","gists_url":"https://api.github.com/users/i336/gists{/gist_id}","starred_url":"https://api.github.com/users/i336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i336/subscriptions","organizations_url":"https://api.github.com/users/i336/orgs","repos_url":"https://api.github.com/users/i336/repos","events_url":"https://api.github.com/users/i336/events{/privacy}","received_events_url":"https://api.github.com/users/i336/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T02:59:20Z","updated_at":"2016-04-14T02:59:20Z","closed_at":null,"body":"**Output of `i3 --moreversion 2>&- || i3 --version`**:\r\n\r\n```\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 2599)\r\nLoaded i3 config: /home/i336/.config/i3/config (Last modified: Sat Mar 26 18:24:51 2016, 1624298 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\n**URL to a logfile as per http://i3wm.org/docs/debugging.html**:\r\n\r\n```\r\n$ DISPLAY=:1.0 i3-dump-log ...\r\nhttp://logs.i3wm.org/logs/5764640680181760.bz2\r\n$ DISPLAY=:1.1 i3-dump-log ...\r\nhttp://logs.i3wm.org/logs/5657903226683392.bz2\r\n```\r\n**What I did:**\r\n\r\nMove my mouse from one discrete X11 screen to another (for example, :0.1 > :0.0)\r\n\r\n**What I saw:**\r\n\r\nThe window on the target X screen does not get focused when I move my mouse over it.\r\n\r\nI believe I have focus-follows-mouse enabled: i3 tracks my mouse cursor and focuses the window under it at all times, except when moving between X screens.\r\n\r\nAt the moment, I must either...\r\n\r\n- move the mouse from the initial window I touch on entering the target screen and into another window, or\r\n\r\n- touch the titlebar of the window I want focused with my mouse\r\n\r\n...for a focus change event to occur. (With the first method, if it's the first window I reached that I wanted focused, I have to move the mouse back to that window again.)\r\n\r\n**What I expected instead:**\r\n\r\nFor the window on the target X screen to focus correctly the moment I mouseover it.\r\n\r\n**How to reproduce this issue with perfect consistency using the i3 version documented above**:\r\n\r\nHere's the configuration I used to produce the above logs (listed without `$` characters for easy copypasting)\r\n\r\n```\r\nXephyr :0 -screen 640x480 -screen 640x480 &q\r\nDISPLAY=:0.0 i3 --shmlog-size=26214400 &\r\nDISPLAY=:0.1 i3 --shmlog-size=26214400 &\r\nDISPLAY=:0.0 xterm & DISPLAY=:0.0 xterm &\r\nDISPLAY=:0.1 xterm & DISPLAY=:0.1 xterm &\r\n```\r\n\r\nI arranged the Xephyr windows side-by-side, then moved the mouse between the two `xterms` that are closest together.\r\n\r\nThe cursor remained stuck in one of the terminal windows until I moved into a different `xterm` window on a particular screen.\r\n\r\nFor a reference of what I consider to be correct/working/sane behavior, if I configure Openbox with `<followMouse>yes</followMouse>` in `rc.xml` and run it inside Xephyr, it tracks my mouse and focuses the window my mouse cursor is under regardless of how I'm traversing X11 displays.\r\n\r\nI would really appreciate some ideas on quick-hack fixes - unfortunately trying to force-focus the \"correct\" active window using `xdotool` has no effect."}}