-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isMinimized and unMinimize incorrect #269
Comments
If it's applicable I used |
Thanks! Just to confirm understanding, what was the actual result and expected behaviour? |
After I minimize a window with the yellow minimize button I expect isMinimized to return true. Instead it returns false. Similarly if a window is minimized I expect unMinimize to return true. Instead it returns false. I ran into this issue because when you try to position or resize a minimized window you get a null reference error. I tried to unMinimize the window before positioning but since both isMinimized and unMinimize aren't working as expected I can't position or resize minimized windows. |
If isMinimize is working on your machine it's possible this has to do with customizations I've done to my dock in which case I'll need to investigate a bit more. |
Also thank you for this library. I know I've reported a couple of bugs but overall this is absolutely fantastic and a joy to work with. 🚀 |
@lukesmurray Thanks for the details, I’ll look into this when I have time. These just make it even better. Thanks for the kind words! |
…stance when the app is for example minimised. The function will now correctly return “undefined” in such cases (#269).
@lukesmurray Hey, thanks for reporting this! This was partly expected behaviour and a bug at the same time. Long story short, a minimised app will not have a main window and this is why you experienced this behaviour. The You should use |
Reproduced with
slack
,zoom
,roam research
,vscode
.To reproduce minimize an app then use a keyboard shortcut to query whether the app
isMinimized
and try tounminimize
it.The text was updated successfully, but these errors were encountered: