Skip to content

Add option to accept an X11 window id and draw in it rather than opening a new window.#121

Open
wolfwood wants to merge 1 commit into
projectM-visualizer:masterfrom
wolfwood:feature/window_id
Open

Add option to accept an X11 window id and draw in it rather than opening a new window.#121
wolfwood wants to merge 1 commit into
projectM-visualizer:masterfrom
wolfwood:feature/window_id

Conversation

@wolfwood
Copy link
Copy Markdown

This feature can be used with xwinwrap to make projectMSDL into a live wallpaper/desktop background, eg:

xwinwrap -fs -nf -b -un -ov -fdt -- projectMSDL -wid %WID

The proposed argument name is not camelcase like the existing ones, but --window-id is used for this same feature by all the xscreensaver plugins and the short form -wid is used by mpv and mplayer.

This is an especially nice effect when using a tiling window manager with terminal and editor windows with translucent backgrounds, but also requires a compositor. I use picom.

Thanks to this forum comment for the SDL_HINT_VIDEO_FOREIGN_WINDOW_OPENGL hint, which is needed for OpenGL rendering context creation to succeed.

@kblaschke
Copy link
Copy Markdown
Member

With X11 getting more and more phased out on Linux, I'd be more interested in a solution that works on Wayland too.

Besides that, I think it might be a better idea to create a more lightweight frontend (without the UI, hotkeys etc.) than using this one for the specific purpose of being integrated into other applications via different window managers, possibly even working on Windows as well.

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