So, how difficult would it be to allow for 'swallowing' an X window in
XEmacs? This would be easier than what I had to do ages ago to get mpegs
playing inside XEmacs (adding a '-window xxxxx' switch)
I was playing around with this, and can correctly make an 'xterm'
disappear, but it does not get drawn correctly inside of XEmacs (it does
sometimes, ONCE, but...)
This would make it easier for displaying Java applets inside XEmacs, things
like that. Running hotjava or another VM and then walking the window tree
would be much easier than trying to get the various java runtimes to accept
a '-window' argument. Ditto for other programs.
Anybody with more X experience want to comment? Basically, I changed
x_subwindow_instantiate() to do:
char *provided_window = "0x280000e";
if (provided_window)
{
win = strtol (provided_window, NULL, 0);
XReparentWindow (dpy, win, IMAGE_INSTANCE_X_CLIPWINDOW (ii), 0, 0);
XChangeWindowAttributes (dpy, win, valueMask, &xswa);
XSetWindowColormap (dpy, win, DefaultColormapOfScreen (xs));
}
else
{
win = XCreateWindow (dpy, IMAGE_INSTANCE_X_CLIPWINDOW (ii),
0, 0, w, h, 0, CopyFromParent,
InputOutput, CopyFromParent, valueMask,
&xswa);
}
Also, I've got no idea how events should be passed from XEmacs to the
underlying X application.
-Bill P.
Show replies by date