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 intoprojectM-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 intoprojectM-visualizer:masterfrom
wolfwood:feature/window_id

Conversation

@wolfwood
Copy link

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.

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.

1 participant