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

Comments

add multi monitor screenshare support#29

Open
jampe wants to merge 4 commits intoElliotKillick:masterfrom
jampe:master
Open

add multi monitor screenshare support#29
jampe wants to merge 4 commits intoElliotKillick:masterfrom
jampe:master

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 <daniel@jampen.net>
Signed-off-by: jampe <daniel@jampen.net>
Signed-off-by: jampe <daniel@jampen.net>
@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