{"action":"created","issue":{"url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/449","labels_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/449/comments","events_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/449/events","html_url":"https://github.com/pkulchenko/ZeroBraneStudio/issues/449","id":71415330,"number":449,"title":"Debugger start / termination causes ZBS to request focus","user":{"login":"madmaxoft","id":4388386,"avatar_url":"https://avatars.githubusercontent.com/u/4388386?v=3","gravatar_id":"","url":"https://api.github.com/users/madmaxoft","html_url":"https://github.com/madmaxoft","followers_url":"https://api.github.com/users/madmaxoft/followers","following_url":"https://api.github.com/users/madmaxoft/following{/other_user}","gists_url":"https://api.github.com/users/madmaxoft/gists{/gist_id}","starred_url":"https://api.github.com/users/madmaxoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmaxoft/subscriptions","organizations_url":"https://api.github.com/users/madmaxoft/orgs","repos_url":"https://api.github.com/users/madmaxoft/repos","events_url":"https://api.github.com/users/madmaxoft/events{/privacy}","received_events_url":"https://api.github.com/users/madmaxoft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/labels/Feature","name":"Feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":{"login":"pkulchenko","id":77071,"avatar_url":"https://avatars.githubusercontent.com/u/77071?v=3","gravatar_id":"","url":"https://api.github.com/users/pkulchenko","html_url":"https://github.com/pkulchenko","followers_url":"https://api.github.com/users/pkulchenko/followers","following_url":"https://api.github.com/users/pkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/pkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/pkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkulchenko/subscriptions","organizations_url":"https://api.github.com/users/pkulchenko/orgs","repos_url":"https://api.github.com/users/pkulchenko/repos","events_url":"https://api.github.com/users/pkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/pkulchenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-27T22:05:07Z","updated_at":"2015-04-29T07:39:18Z","closed_at":"2015-04-28T18:20:59Z","body":"Since I upgraded (to 140fdcb101f14152dcd894723cc21f29f369c129 from an ancient version several months old), ZBS tries to get to the front every time a MobDebug session is activated. This is rather disruptive to my work, is there a way to configure it not to do that?\r\n\r\nMy current workflow is:\r\n1. Write some plugin code in ZBS\r\n2. Start debugging in the MCServer interpreter (starts a new console window with the server)\r\n3. MCServer loads my plugin, ZBS window flashes to request focus.\r\n4. Test out the plugin (usually in a browser) and discover something I need to change\r\n5. Code the change in ZBS, while the server is still running\r\n6. Issue a `reloadplugins` command in the server, which unloads and reloads the script file, thus terminating and restarting the debug session\r\n7. ZBS window flashes to request focus\r\netc.\r\n\r\nIf it was possible to configure this focus stealing either via configuration, or as a property of the interpreter, that would be great."},"comment":{"url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/comments/97334255","html_url":"https://github.com/pkulchenko/ZeroBraneStudio/issues/449#issuecomment-97334255","issue_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/449","id":97334255,"user":{"login":"madmaxoft","id":4388386,"avatar_url":"https://avatars.githubusercontent.com/u/4388386?v=3","gravatar_id":"","url":"https://api.github.com/users/madmaxoft","html_url":"https://github.com/madmaxoft","followers_url":"https://api.github.com/users/madmaxoft/followers","following_url":"https://api.github.com/users/madmaxoft/following{/other_user}","gists_url":"https://api.github.com/users/madmaxoft/gists{/gist_id}","starred_url":"https://api.github.com/users/madmaxoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmaxoft/subscriptions","organizations_url":"https://api.github.com/users/madmaxoft/orgs","repos_url":"https://api.github.com/users/madmaxoft/repos","events_url":"https://api.github.com/users/madmaxoft/events{/privacy}","received_events_url":"https://api.github.com/users/madmaxoft/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T07:39:18Z","updated_at":"2015-04-29T07:39:18Z","body":"I believe the different reaction is due to Windows - the BringToFront feature has been long misused by so many various programs that Windows started to manipulate the API, so that programs won't steal focus, but still they needed it for their own apps, so they kept some way of doing it, and now the system is so confused about it that it's no longer consistent.\r\n\r\nI don't get any focus switches since I've disabled the attention requesting. It now works perfectly fine. Thanks."}}