{"action":"created","issue":{"url":"https://api.github.com/repos/synergy/synergy/issues/3241","labels_url":"https://api.github.com/repos/synergy/synergy/issues/3241/labels{/name}","comments_url":"https://api.github.com/repos/synergy/synergy/issues/3241/comments","events_url":"https://api.github.com/repos/synergy/synergy/issues/3241/events","html_url":"https://github.com/synergy/synergy/issues/3241","id":45612954,"number":3241,"title":"Redundant restart for elevation when already elevated","user":{"login":"nbolton","id":313427,"avatar_url":"https://avatars.githubusercontent.com/u/313427?v=3","gravatar_id":"","url":"https://api.github.com/users/nbolton","html_url":"https://github.com/nbolton","followers_url":"https://api.github.com/users/nbolton/followers","following_url":"https://api.github.com/users/nbolton/following{/other_user}","gists_url":"https://api.github.com/users/nbolton/gists{/gist_id}","starred_url":"https://api.github.com/users/nbolton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbolton/subscriptions","organizations_url":"https://api.github.com/users/nbolton/orgs","repos_url":"https://api.github.com/users/nbolton/repos","events_url":"https://api.github.com/users/nbolton/events{/privacy}","received_events_url":"https://api.github.com/users/nbolton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/synergy/synergy/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/synergy/synergy/labels/priority-soon","name":"priority-soon","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-10-13T06:46:38Z","updated_at":"2015-12-02T00:13:18Z","closed_at":null,"body":"**Imported issue:**\n\n* Author: Nick Bolton\n* Date: 2012-07-31 21:33:12\n* Legacy ID: 3311\n* Version: 1.4.15\n\n1. Check the \"Elevate\" option\r\n2. Click Apply\r\n3. Cause a UAC dialog to display\r\n\r\nExpected: Mouse is usable immediately\r\n\r\nActual: Mouse can't be used for ~5 secs while server/client restarts for elevation (when already elevated)"},"comment":{"url":"https://api.github.com/repos/synergy/synergy/issues/comments/161138349","html_url":"https://github.com/synergy/synergy/issues/3241#issuecomment-161138349","issue_url":"https://api.github.com/repos/synergy/synergy/issues/3241","id":161138349,"user":{"login":"dpolivy","id":3200655,"avatar_url":"https://avatars.githubusercontent.com/u/3200655?v=3","gravatar_id":"","url":"https://api.github.com/users/dpolivy","html_url":"https://github.com/dpolivy","followers_url":"https://api.github.com/users/dpolivy/followers","following_url":"https://api.github.com/users/dpolivy/following{/other_user}","gists_url":"https://api.github.com/users/dpolivy/gists{/gist_id}","starred_url":"https://api.github.com/users/dpolivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpolivy/subscriptions","organizations_url":"https://api.github.com/users/dpolivy/orgs","repos_url":"https://api.github.com/users/dpolivy/repos","events_url":"https://api.github.com/users/dpolivy/events{/privacy}","received_events_url":"https://api.github.com/users/dpolivy/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T00:13:18Z","updated_at":"2015-12-02T00:13:18Z","body":"Quick update, I pulled the latest commits into my fork, and then re-applied this diff, and sure enough, if I run Synergy in elevated mode, then I don't lose the connection when UAC prompts appear!\r\n\r\nThe updated diff is:\r\n````\r\n@@ -527,7 +527,9 @@ void MainWindow::startSynergy()\r\n\t\t// is switched; this is because we may need to elevate or not\r\n\t\t// based on which desk the user is in (login always needs\r\n\t\t// elevation, where as default desk does not).\r\n-\t\targs << \"--stop-on-desk-switch\";\r\n+\t\tif (!appConfig().elevateMode()) {\r\n+\t\t\targs << \"--stop-on-desk-switch\";\r\n+\t\t}\r\n#endif\r\n\t}\r\n````\r\n\r\nI don't know what the current issues are with always running in an elevated mode, but if they're minimal or have been addressed since this was originally opened, I'd strongly suggest pulling this change in."}}