GtkOverlay on top of a XWindow that is GL rendered

Is it possible to put a GtkOverlay on top of a XWindow that is GL rendered?

Gtk does not control the window rendering.

The original window is actually a Gtk Window, but it’s passed to GLX as a XID and rendered independently.

Yes, I know it’s not ideal.

Hi,

If you can explain what you’re trying to achieve, it would help GTK devs.

Sure,

It’s for the PR:

MacOS would draw window controls over the window. I want to mimmick that with a GtkOverlay, and use either the HeaderBar, or copy the button part (since GtkWindowControls are gtk4 only and we use gtk3).

The window is a GtkWindow, but it’s app paintable and rendered with GL directly on the XWindow XID.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.