{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/2763","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/2763/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/2763/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/2763/events","html_url":"https://github.com/nwjs/nw.js/issues/2763","id":51321711,"number":2763,"title":"Window API - maximize = unmaximize on Mac Os X 10.10","user":{"login":"micc83","id":1750404,"avatar_url":"https://avatars.githubusercontent.com/u/1750404?v=3","gravatar_id":"","url":"https://api.github.com/users/micc83","html_url":"https://github.com/micc83","followers_url":"https://api.github.com/users/micc83/followers","following_url":"https://api.github.com/users/micc83/following{/other_user}","gists_url":"https://api.github.com/users/micc83/gists{/gist_id}","starred_url":"https://api.github.com/users/micc83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micc83/subscriptions","organizations_url":"https://api.github.com/users/micc83/orgs","repos_url":"https://api.github.com/users/micc83/repos","events_url":"https://api.github.com/users/micc83/events{/privacy}","received_events_url":"https://api.github.com/users/micc83/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nwjs/nw.js/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/nwjs/nw.js/labels/mac-only","name":"mac-only","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"rogerwang","id":165401,"avatar_url":"https://avatars.githubusercontent.com/u/165401?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerwang","html_url":"https://github.com/rogerwang","followers_url":"https://api.github.com/users/rogerwang/followers","following_url":"https://api.github.com/users/rogerwang/following{/other_user}","gists_url":"https://api.github.com/users/rogerwang/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerwang/subscriptions","organizations_url":"https://api.github.com/users/rogerwang/orgs","repos_url":"https://api.github.com/users/rogerwang/repos","events_url":"https://api.github.com/users/rogerwang/events{/privacy}","received_events_url":"https://api.github.com/users/rogerwang/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-12-08T16:32:16Z","updated_at":"2015-01-18T13:55:14Z","closed_at":null,"body":"On Mac Os X 10.10, node-webkit 0.11.2 Window.maximize and Window.unmaximize result both in a \"toggleMaximize\". Here's my testing code:\r\n\r\n\t<script>\r\n\tvar gui = require('nw.gui');\r\n\tvar newWindow = gui.Window.open('options.html');\r\n\t</script>\r\n\t<a href=\"#\" onclick=\"newWindow.maximize()\">Maximize Window</a><br>\r\n\t<a href=\"#\" onclick=\"newWindow.unmaximize()\">Unmaximize Window</a>\r\n\r\nWorking fine in Ubuntu 14.04.1 LTS and on Windows 8.1.\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/6857050-window-api-maximize-unmaximize-on-mac-os-x-10-10?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/70409129","html_url":"https://github.com/nwjs/nw.js/issues/2763#issuecomment-70409129","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/2763","id":70409129,"user":{"login":"mrfabbri","id":3601,"avatar_url":"https://avatars.githubusercontent.com/u/3601?v=3","gravatar_id":"","url":"https://api.github.com/users/mrfabbri","html_url":"https://github.com/mrfabbri","followers_url":"https://api.github.com/users/mrfabbri/followers","following_url":"https://api.github.com/users/mrfabbri/following{/other_user}","gists_url":"https://api.github.com/users/mrfabbri/gists{/gist_id}","starred_url":"https://api.github.com/users/mrfabbri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrfabbri/subscriptions","organizations_url":"https://api.github.com/users/mrfabbri/orgs","repos_url":"https://api.github.com/users/mrfabbri/repos","events_url":"https://api.github.com/users/mrfabbri/events{/privacy}","received_events_url":"https://api.github.com/users/mrfabbri/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T13:55:14Z","updated_at":"2015-01-18T13:55:14Z","body":"I can reproduce and confirm this both on 0.11.5 and 0.12.0-alpha1, the issue currently lie in [lines 521-527 of native_window_mac.mm](https://github.com/nwjs/nw.js/blob/f7b40d0d6beb8ce3d9cf04763a79c8c6f11f5528/src/browser/native_window_mac.mm#L521-L527) which actually do toggle the un/maximized state of the window.\r\n"}}