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.
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 correctlymaximize()
as needed before hiding the launcher. Chose to call originalmaximize()
before thehide()
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 onresize
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.