PortionOfScreen icon indicating copy to clipboard operation
PortionOfScreen copied to clipboard

Share focused Window

Open serverhorror opened this issue 2 years ago • 5 comments

Hello,

Thank you for making this! It works great.

Is it possible to add a feature that will share the "currently focused" window?

I think that will make it great since the screen layout is still what the presenter has to conveniently present and the audience will be able to follow things. I believe OBS does that, but it is a virtual camera not an application that can be shared.

serverhorror avatar Nov 25 '22 09:11 serverhorror

Good thinking, I like that idea. Should be possible.

egonl avatar Nov 25 '22 09:11 egonl

I was just in a meeting where this would have been very useful - lots of switching between windows of various sizes and aspect ratios. By allowing it to follow focused windows rather than a set area, viewers would see the shared content as large as their device will allow.

Bzly avatar Feb 28 '24 14:02 Bzly

Hi @egonl, here is an idea for an implementation I would like to share: Diff If you like I can push the branch to your repo instead of my fork.

dodjango avatar Apr 09 '24 19:04 dodjango

Thanks @dodjango. I tried your implementation, liked it and refactored it a bit, see #11. What do you think?

egonl avatar Apr 10 '24 23:04 egonl

Using the timer is much better than the event for redrawing. Resizing also works this way, great. Ignoring small windows is a good idea I thought about too but ended up with that it would be more interesting to have something like an ignore list for unwanted windows. So it would also be possible to never share outlook or the password manager. But this is another requirement I think. After my first implementation I tested also with multi monitors and different scaling. This does not work and started reading a little bit about handling multi monitors. image Than I had no more time to continue and committed the first approach. May be I will have a little time and add this in the future.

dodjango avatar Apr 12 '24 15:04 dodjango