I find the GtkFixed widget that contains the windows of a
frame, then I add
the webkitgtk widget as a child of that GtkFixed. So everything
under the
widget is obscured, including any text written into the
webkit-mode buffer.
In fact I use the buffer for processing module->lisp async
messages. I
monitor for changes in the coordinates of the window with
`window-size-change-functions`. Child frames are also added as
children of
the GtkFixed widget which presents a problem for things like
posframe. I
ensure that the webkit view is always below such child frames,
as it would
be if it were rendered as part of the buffer's window itself.
Could this approach be used to perform OpenGL drawing or
obtaining a
cairo context to draw on? I'm not terribly interested in putting
a
webview inside Emacs, 3D/2D graphics however...
Vasilij