pablopunk / SwiftShift

Sweet window management for macOS
https://swiftshift.app
MIT License
216 stars 9 forks source link

Screenshots are difficult #11

Closed cpressland closed 7 months ago

cpressland commented 8 months ago

When using SwiftSift with the CMD+Shift modifier, screenshots become difficult. Example, CMD+SHIFT+4 allows you to draw a box around the area you wish to screenshot. With ShwiftShift running macOS is trying to draw that box and take a screenshot at the same time, which makes taking the screenshot is almost impossible.

One possible solution might be to watch for a known button press such as 3 or 4 and then discard any resize / move workflows, alternatively, if any other button is pressed while the modifiers are held down, also discard.

pablopunk commented 8 months ago

It's a great idea to watch for other buttons to be pressed (apart from the shortcut, of course). I might try to implement it if possible. But for your specific scenario, I'm not sure what the issue is. If you press CMD+SHIFT+4 you don't have to hold it to take a screenshot, just press it once, drag the area, and click. Here's an example using Swift Shift alongside the screenshot feature:

https://github.com/pablopunk/SwiftShift/assets/4324982/0bc7c483-b25c-4ca9-8bc4-7af206209a5b

Is that not your case? Let me know!

cpressland commented 8 months ago

Very interesting, thats not what happens on my system at all.

https://github.com/pablopunk/SwiftShift/assets/6557665/1f31961c-6665-4eb9-a47d-978cc2dac9cd

You can kinda see this from the sudden resize after I let go of left click from taking the screenshot.

pablopunk commented 7 months ago

@cpressland is this still happening with the latest release? https://github.com/pablopunk/SwiftShift/releases/latest/download/SwiftShift.zip

pablopunk commented 7 months ago

Feel free to reopen if it still happens