annotate src/xembed.cc @ 1137:f10904ac58b4

more xembed work * Create Xembed windows directly as child windows instead of reparenting them to avoid races with reparenting WMs. * Set _XEMBED_INFO property as required by XEMBED. * Send XEMBED_REQUEST_FOCUS to get focus when user clicks on the dillo window.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 27 May 2009 17:52:45 +0200
parents dfbb2dac3b27
children 227999b86d9b
rev   line source
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
1 #include <stdio.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
2 #include <string.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
3 #include <ctype.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
4
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
5 #include <fltk/Window.h>
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
6 #include <fltk/x11.h>
1114
d5bcb4123441 fix xembed stuff with reparenting WMs
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1110
diff changeset
7 #include <fltk/run.h>
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
8 #include <fltk/events.h>
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
9 #include <fltk/x.h>
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
10
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
11 #include "xembed.hh"
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
12
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
13 #if USE_X11
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
14 typedef enum {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
15 XEMBED_EMBEDDED_NOTIFY = 0,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
16 XEMBED_WINDOW_ACTIVATE = 1,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
17 XEMBED_WINDOW_DEACTIVATE = 2,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
18 XEMBED_REQUEST_FOCUS = 3,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
19 XEMBED_FOCUS_IN = 4,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
20 XEMBED_FOCUS_OUT = 5,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
21 XEMBED_FOCUS_NEXT = 6,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
22 XEMBED_FOCUS_PREV = 7,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
23 XEMBED_GRAB_KEY = 8,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
24 XEMBED_UNGRAB_KEY = 9,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
25 XEMBED_MODALITY_ON = 10,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
26 XEMBED_MODALITY_OFF = 11,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
27 } XEmbedMessageType;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
28
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
29 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
30 Xembed::setXembedInfo(unsigned long flags)
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
31 {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
32 unsigned long buffer[2];
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
33
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
34 Atom xembed_info_atom = XInternAtom (fltk::xdisplay, "_XEMBED_INFO", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
35
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
36 buffer[0] = 1;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
37 buffer[1] = flags;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
38
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
39 XChangeProperty (fltk::xdisplay,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
40 xid,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
41 xembed_info_atom, xembed_info_atom, 32,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
42 PropModeReplace,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
43 (unsigned char *)buffer, 2);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
44 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
45
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
46 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
47 Xembed::sendXembedEvent(uint32_t message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
48 XClientMessageEvent xclient;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
49
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
50 memset (&xclient, 0, sizeof (xclient));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
51 xclient.window = xid;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
52 xclient.type = ClientMessage;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
53 xclient.message_type = XInternAtom (fltk::xdisplay, "_XEMBED", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
54 xclient.format = 32;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
55 xclient.data.l[0] = fltk::event_time;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
56 xclient.data.l[1] = message;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
57
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
58 XSendEvent(fltk::xdisplay, xid, False, NoEventMask, (XEvent *)&xclient);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
59 XSync(fltk::xdisplay, False);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
60 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
61
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
62 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
63 Xembed::handle(int e) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
64 if (e == fltk::PUSH)
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
65 sendXembedEvent(XEMBED_REQUEST_FOCUS);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
66
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
67 return Window::handle(e);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
68 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
69
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
70 static int event_handler(int e, fltk::Window *w) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
71 Atom xembed_atom = XInternAtom (fltk::xdisplay, "_XEMBED", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
72
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
73 if (fltk::xevent.type == ClientMessage) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
74
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
75 fprintf(stderr, "====> %s\n", XGetAtomName(fltk::xdisplay, fltk::xevent.xclient.message_type));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
76
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
77 if (fltk::xevent.xclient.message_type == xembed_atom) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
78 long message = fltk::xevent.xclient.data.l[1];
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
79
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
80 switch (message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
81 case XEMBED_WINDOW_ACTIVATE:
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
82 w->resize(0, 0, w->w(), w->h());
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
83 break;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
84 case XEMBED_WINDOW_DEACTIVATE:
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
85 break;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
86 default:
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
87 break;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
88 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
89 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
90 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
91
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
92 return 0;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
93 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
94
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
95 // TODO; Implement more XEMBED support;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
96
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
97 void Xembed::create() {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
98 create_internal(xid);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
99 setXembedInfo(1);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
100 fltk::add_event_handler(event_handler);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
101 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
102
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
103 void Xembed::create_internal(uint32_t parent) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
104 fltk::Window *window = this;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
105 Colormap colormap = fltk::xcolormap;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
106
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
107 XSetWindowAttributes attr;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
108 attr.border_pixel = 0;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
109 attr.colormap = colormap;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
110 attr.bit_gravity = 0; // StaticGravity;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
111 int mask = CWBorderPixel|CWColormap|CWEventMask|CWBitGravity;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
112
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
113 int W = window->w();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
114 if (W <= 0) W = 1; // X don't like zero...
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
115 int H = window->h();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
116 if (H <= 0) H = 1; // X don't like zero...
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
117 int X = window->x();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
118 int Y = window->y();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
119
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
120 attr.event_mask =
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
121 ExposureMask | StructureNotifyMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
122 | KeyPressMask | KeyReleaseMask | KeymapStateMask | FocusChangeMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
123 | ButtonPressMask | ButtonReleaseMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
124 | EnterWindowMask | LeaveWindowMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
125 | PointerMotionMask;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
126
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
127 fltk::CreatedWindow *x = fltk::CreatedWindow::set_xid(window,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
128 XCreateWindow(fltk::xdisplay,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
129 parent,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
130 X, Y, W, H,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
131 0, // borderwidth
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
132 fltk::xvisual->depth,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
133 InputOutput,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
134 fltk::xvisual->visual,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
135 mask, &attr));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
136 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
138 #else // USE_X11
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
139 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
140 Xembed::setXembedInfo(unsigned long flags) {};
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
141
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
142 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
143 Xembed::sendXembedEvent(uint32_t message) {};
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
144
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
145 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
146 Xembed::handle(int e) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
147 return Window::handle(e);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
148 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
149
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
150 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
151 Xembed::create() {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
152 Window::create();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
153 }
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
154 #endif