Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

add multi monitor screenshare support #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jampe
Copy link

@jampe jampe commented Mar 30, 2022

This PR implements multi monitor screen share support.

Comment on lines 68 to 69
if untrusted_width > screen.width() or untrusted_height > screen.height() or untrusted_fps > 4096:
print('warning: excessive width, height, and/or fps')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

untrusted_fps being too large is definitely an error. I really do not want to allow untrusted_width * untrusted_height that exceeds INT_MAX / 4, or other values that risk causing integer overflow downstream.

jampe added 3 commits March 30, 2022 23:19
- change excessive width / height / fps runtime error to a warning (multi monitor screenshare often exceeds this check)
- add parameter for qubes-video-companion screenshare [screenId] which enables a user to share a specific screen only

Signed-off-by: jampe <[email protected]>
Signed-off-by: jampe <[email protected]>
@jampe
Copy link
Author

jampe commented Mar 30, 2022

Thanks for reviewing this.

To elaborate on the set limits: I hardly think someone will do screen sharing with more than 60 fps. Additionally I've set the max width / height to 3 x 4k what should hopefully be enough for everyone...

Let me know if you'd like different limits. cheers

args.insert(3, "endx={}".format(geometry.x+geometry.width-1))
args.insert(4, "endy={}".format(geometry.y+geometry.height-1))

print(" ".join(args))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(" ".join(args))

This would break the receiver, which isn’t expecting this line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants