wmperry(a)aventail.com (William M. Perry) writes:
Anybody with more X experience want to comment? Basically, I
changed
x_subwindow_instantiate() to do:
[ugly "first try interface" deleted to protect minors]
XReparentWindow (dpy, win, IMAGE_INSTANCE_X_CLIPWINDOW (ii), 0, 0);
XChangeWindowAttributes (dpy, win, valueMask, &xswa);
XSetWindowColormap (dpy, win, DefaultColormapOfScreen (xs));
I am not an X expert, but I can stand on the shoulders of Rob Nation
(from the FVWM 2.2 sources:)
XReparentWindow(dpy,Buttons[button].IconWin, main_win,
j*ButtonWidth+2, i*ButtonHeight+2);
XMapWindow(dpy,Buttons[button].IconWin);
XSelectInput(dpy,(Window)body[0],
PropertyChangeMask|StructureNotifyMask);
Note that the FVWM swallow routine also looks up the WM hints to
determine a natural size. I can mail you the complete routine if you want.
Note that the gnome sources do something very weird when deleting
windows. They reparent back to root and then delete ....
Jan
P.S. With all this X hackery going on it is becoming reasonable to
define set-x-window-property, set-x-window-property-change-callback
etc for elisp.
P.P.S. Please submit a comprehensive GPM patch to xemacs-patches. I
have lost track. I will apply it to 21.2 then.