rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.1k stars 742 forks source link

Screen sharing captures keypress before reaching the shared screen/server #1316

Open neaumusic opened 6 months ago

neaumusic commented 6 months ago

I have a mac mini that I'm using as a server, using docker/iterm/vscode. On my laptop I can ssh or screen share this mac mini, and I did brew install --cask rectangle but noticed my host machine is still capturing those keypress / not allowing them through to the screen share.

This should be possible because all other system keyboard shortcuts (like CMD+Tab) seem to work within the screen share, just not rectangle's stuff because my laptop is capturing it. If I quit rectangle on my laptop, the server then receives the keystrokes and works appropriately.

macOS version: Sonoma 14.2 Rectangle version: Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

rxhanson commented 6 months ago

Thanks for reporting. Did you try ignoring Screen Sharing from the menu bar menu of Rectangle on your host machine, while Screen Sharing is frontmost?

In terms of shortcuts like cmd+tab, macOS and the Screen Sharing app are making assumptions about what should be captured, whereas Rectangle makes no assumptions (maybe you want to move the Screen Sharing windows around with Rectangle on the host).

flori commented 4 months ago

For the longest time I was annoyed by this behavior and was just living with it before I managed to google this bug report just now. To ignore it actually helped, so thanks! Maybe you can add the Screen Sharing as an example in the README.md? I am not sure I would have found it then, though.