-
Notifications
You must be signed in to change notification settings - Fork 572
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
Issue with Preview #2355
Comments
In fact, even when I make the window full screen using keyboard shortcut and then close the window, same issue occurs. |
I also tried the left and right half screen scripts with preview. And it doesn’t work. The two windows overlap for some portion. |
Icons staying in the Dock when you close an application's window, is normal behaviour in macOS. I think you probably need more logic to check to see what kind of window the focused one is, and if it's an Open window, ignore it. I'm not sure why you're not getting the launched event, that's probably worth investigating. |
For other applications, yes. For preview, no. They only stay in dock if Hammerspoon is used.
I think I have some idea. It triggers when the application is launched after However once opened and closed which removes it from dock and |
I suspect you might be seeing something like https://apple.stackexchange.com/questions/133158/preview-is-closed-in-mavericks-when-last-window-is-closed |
Yes. That is what should happen, but isn’t happening when I resize preview window using hammer spoon. |
Sorry, I specifically meant this comment: https://apple.stackexchange.com/a/196536 - I suspect that some part of Preview is still running, which would explain why you don’t get the Hammerspoon does not stop Preview from quitting, and I don’t think there is even a way that that could happen. I’d forgotten about the app termination thing in some versions of macOS, but the “app stays open after the last window closes” behaviour is traditionally normal for macOS and isn’t related to Hammerspoon. |
I also think so.
I think the following video may help you understand the issue better. |
I’ve found that the same thing happens for pages, QuickTime, etc. for which the dock icon used to automatically disappear. |
Perhaps Catalina has broken the automatic app? |
I have the following script.
This script only runs when preview window is activated and doesn't run when launched. Also when the window is closed, the preview icon stays in the dock, instead of going away.
On clicking the app icon in dock, file open dialog appears which becomes full screen.
The text was updated successfully, but these errors were encountered: