Note: Potentially some flaky behavior related to Electron Store (or hotswap)? Had wanted to squash my commit / re-created the PR for some linter build failures, for whatever reason seemed like the issue had re-appeared? Hoping a reviewer can confirm.
Longer context/investigation on the JIRA task, issue is related to the transparent launcher window and Electron 11.
With a workaround implementation of isMaximized(), it's possible to correctly maximize() as needed before hiding the launcher. Chose to call original maximize() before the hide() and not add the other workaround implementations for minimal addition.
Even with workaround - including getWindowBounds() caused the freeze again. When the Windows native maximize is used to maximize the transparent window, resized event is not triggered. Updating the bounds on resize for the maximize (the double-click) resolves the issue again.
Store the state of whether the launcher was maximized before hiding. Restoring from the tray is a show event - check if the user had their launcher maximized and maximize it if so.
Note: Potentially some flaky behavior related to Electron Store (or hotswap)? Had wanted to squash my commit / re-created the PR for some linter build failures, for whatever reason seemed like the issue had re-appeared? Hoping a reviewer can confirm.
Longer context/investigation on the JIRA task, issue is related to the transparent launcher window and Electron 11.
With a workaround implementation of isMaximized(), it's possible to correctly maximize() as needed before hiding the launcher. Chose to call original maximize() before the hide() and not add the other workaround implementations for minimal addition.
Even with workaround - including getWindowBounds() caused the freeze again. When the Windows native maximize is used to maximize the transparent window, resized event is not triggered. Updating the bounds on resize for the maximize (the double-click) resolves the issue again.
Store the state of whether the launcher was maximized before hiding. Restoring from the tray is a show event - check if the user had their launcher maximized and maximize it if so.