-
Notifications
You must be signed in to change notification settings - Fork 583
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
[Bug] hsWindow:snapshot(true) gives error #2742
Comments
Thanks for the great bug report - you nailed it with where the mistake is. I'll fix it momentarily. |
cmsj
added a commit
that referenced
this issue
Mar 8, 2021
Fix hs.window:snapshot() transparency option. Closes #2742
This was referenced Mar 8, 2021
@dasmurphy nice, I ran into this too and was going to report it- you nailed it 👍 |
@cmsj Thanks for the fix! @luckman212 Hope my workaround helped you a little bit. |
This was referenced Mar 8, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made some tests with the webview and tried to save a screenshot to a file.
The Bug
When i try this it works.
When i try this to save the transparency in the file, it gives an error.
The error is:
The documentation states:
keepTransparency
is optional. In the current state it give an error.Code internals
I think this line is not correct
https://github.com/Hammerspoon/hammerspoon/blob/master/extensions/window/internal.m#L621
I think it must be something like
The second parameter check seemed to be wrong, but my Macos development skills are a little bit limited currently and i did not test it out.
Workaround for others
After looking around i found a workaround, which works fine.
Question
Would it be possible to fix this? In theory you can't save any transparency currently. Look fairly easy to fix and release it.
The text was updated successfully, but these errors were encountered: