Skip to content

Conversation

Yonnji
Copy link
Contributor

@Yonnji Yonnji commented Oct 16, 2024

Adds support for transparent windows on X11 when using compositing like this:
https://www.youtube.com/watch?v=3zWK6owqPe0
It works for makepanda and cmake builds.
It's a draft because I don't know how to make the Xrender dependency optional yet.

@Yonnji Yonnji marked this pull request as draft October 16, 2024 19:47
@rdb
Copy link
Member

rdb commented Oct 16, 2024

Great! I also have some code to add transparent windows on macOS lying around somewhere, would be a cool feature to have. We might have to think about how alpha blending works, when I tested it on macOS there was some funny stuff going on with the window background color.

One way to deal with not creating a dependency is by loading Xrender the same way we load Xrandr dynamically, with dlopen--see x11GraphicsPipe.cxx for that. Then we just need the headers to be present during build, which is okay.

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.

2 participants