-
Notifications
You must be signed in to change notification settings - Fork 14
add multi monitor screenshare support #29
base: master
Are you sure you want to change the base?
Conversation
receiver/receiver.py
Outdated
if untrusted_width > screen.width() or untrusted_height > screen.height() or untrusted_fps > 4096: | ||
print('warning: excessive width, height, and/or fps') |
There was a problem hiding this comment.
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.
- 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]>
Signed-off-by: jampe <[email protected]>
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 |
sender/screenshare.py
Outdated
args.insert(3, "endx={}".format(geometry.x+geometry.width-1)) | ||
args.insert(4, "endy={}".format(geometry.y+geometry.height-1)) | ||
|
||
print(" ".join(args)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(" ".join(args)) |
This would break the receiver, which isn’t expecting this line.
This PR implements multi monitor screen share support.