Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

Screen sharing captures keypress before reaching the shared screen/server

Open neaumusic opened this issue 6 months ago • 2 comments

  • [x] This is a new bug that hasn't been documented in a closed issue or in the Readme.

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..."):

neaumusic avatar Dec 28 '23 21:12 neaumusic

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).

rxhanson avatar Dec 29 '23 04:12 rxhanson

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.

flori avatar Feb 14 '24 14:02 flori