Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(screen): Optionally specify absolute coordinates and size of windows #1022

Merged
merged 3 commits into from
Jun 16, 2018

Conversation

Julusian
Copy link
Member

fixes #115 #487 #995

This allows specifying x,y,width,height and always-on-top for a screen consumer.

x and y are an offset relative to the screen selected via screen-index
width and height override the channel format if set. If only one of them is set then the aspect_ratio property is respected to calculate the window size.
These coordinates and dimensions only have effect when the consumer is windowed

Additionally, the aspect_ratio and stretch properties were broken by #966 and now work again.

Some linux window managers were always maximising any screen consumer windows due to them being created at screen size, then the size changed to be correct. It is now set correct when created

Tested on debian 10 (gnome 3) with intel gpu and on windows 10 with intel gpu

One quirks that I shall document on the wiki once this is accepted is that when the consumer is fullscreen and always-on-top, the taskbar, startmenu and alt-tab overlay will still draw on top.

@ronag ronag merged commit b6b6759 into CasparCG:master Jun 16, 2018
@Julusian Julusian deleted the screen-consumer-fixed-size branch June 16, 2018 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screen preview set to fixed size
2 participants