42 unsigned long buffer[2];
44 Atom xembed_info_atom = XInternAtom (fl_display,
"_XEMBED_INFO",
false);
49 XChangeProperty (fl_display,
51 xembed_info_atom, xembed_info_atom, 32,
53 (
unsigned char *)buffer, 2);
58 XClientMessageEvent xclient;
60 memset (&xclient, 0,
sizeof (xclient));
62 xclient.type = ClientMessage;
63 xclient.message_type = XInternAtom (fl_display,
"_XEMBED",
false);
65 xclient.data.l[0] = fl_event_time;
66 xclient.data.l[1] = message;
68 XSendEvent(fl_display,
xid, False, NoEventMask, (XEvent *)&xclient);
69 XSync(fl_display, False);
81 Atom xembed_atom = XInternAtom (fl_display,
"_XEMBED",
false);
83 if (fl_xevent->type == ClientMessage) {
84 if (fl_xevent->xclient.message_type == xembed_atom) {
85 long message = fl_xevent->xclient.data.l[1];
92 w->resize(0,0, w->w(), w->h());
102 return Fl::handle_(e, w);
116 Colormap colormap = fl_colormap;
118 XSetWindowAttributes attr;
119 attr.border_pixel = 0;
120 attr.colormap = colormap;
121 attr.bit_gravity = 0;
122 int mask = CWBorderPixel|CWColormap|CWEventMask|CWBitGravity;
132 ExposureMask | StructureNotifyMask
133 | KeyPressMask | KeyReleaseMask | KeymapStateMask | FocusChangeMask
134 | ButtonPressMask | ButtonReleaseMask
135 | EnterWindowMask | LeaveWindowMask
139 XCreateWindow(fl_display,