{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/12364","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/12364/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/12364/comments","events_url":"https://api.github.com/repos/electron/electron/issues/12364/events","html_url":"https://github.com/electron/electron/issues/12364","id":306802893,"number":12364,"title":"Top title bar is visible when my app loses focus","user":{"login":"Florent99","id":37578125,"avatar_url":"https://avatars0.githubusercontent.com/u/37578125?v=4","gravatar_id":"","url":"https://api.github.com/users/Florent99","html_url":"https://github.com/Florent99","followers_url":"https://api.github.com/users/Florent99/followers","following_url":"https://api.github.com/users/Florent99/following{/other_user}","gists_url":"https://api.github.com/users/Florent99/gists{/gist_id}","starred_url":"https://api.github.com/users/Florent99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Florent99/subscriptions","organizations_url":"https://api.github.com/users/Florent99/orgs","repos_url":"https://api.github.com/users/Florent99/repos","events_url":"https://api.github.com/users/Florent99/events{/privacy}","received_events_url":"https://api.github.com/users/Florent99/received_events","type":"User","site_admin":false},"labels":[{"id":193723572,"url":"https://api.github.com/repos/electron/electron/labels/more-info-needed%20:information_source:","name":"more-info-needed :information_source:","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-20T10:17:07Z","updated_at":"2018-04-02T01:27:35Z","closed_at":"2018-04-02T01:27:35Z","author_association":"NONE","body":"I'm currently working on an Electron JS application. When running this application there is an animation to \"deploy\" the window and its reverse animation to close the application. So my frameless BrowserWindow is larger than its content.\r\n\r\nOne weird behaviour happens when the application loses focus. A frame around the BrowserWindow appears:\r\n\r\nhttps://i.stack.imgur.com/x8GoI.jpg\r\n\r\nThis behaviour only occurs when the blur event is raised. If the app doesn't lose the focus, this bar is not visible at all.\r\nI tried to play with the titleBarStyle property without any success\r\n\r\nHere is how my window is defined:\r\n\r\n```\r\nmainWindow = new BrowserWindow({ frame: false, thickFrame: false, \r\n    width: 1000, height: 450, \r\n    icon: path.join(__dirname, 'assets/sharing-2.ico'), \r\n    transparent: true, titleBarStyle: 'hidden'});\r\n```\r\n\r\nNote that I don't have this behaviour when running an npm start command from Visual Studio Code but it does after I package my app using electron-packager\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/377833244","html_url":"https://github.com/electron/electron/issues/12364#issuecomment-377833244","issue_url":"https://api.github.com/repos/electron/electron/issues/12364","id":377833244,"user":{"login":"sofianguy","id":2138661,"avatar_url":"https://avatars3.githubusercontent.com/u/2138661?v=4","gravatar_id":"","url":"https://api.github.com/users/sofianguy","html_url":"https://github.com/sofianguy","followers_url":"https://api.github.com/users/sofianguy/followers","following_url":"https://api.github.com/users/sofianguy/following{/other_user}","gists_url":"https://api.github.com/users/sofianguy/gists{/gist_id}","starred_url":"https://api.github.com/users/sofianguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofianguy/subscriptions","organizations_url":"https://api.github.com/users/sofianguy/orgs","repos_url":"https://api.github.com/users/sofianguy/repos","events_url":"https://api.github.com/users/sofianguy/events{/privacy}","received_events_url":"https://api.github.com/users/sofianguy/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T01:27:35Z","updated_at":"2018-04-02T01:27:35Z","author_association":"MEMBER","body":"Thank you for your issue!\r\n\r\nWe haven't gotten a response to our questions. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue."}}
{"actor":{"display_login":"sofianguy"}}