annotate src/xembed.cc @ 1820:0c700b9cd251

some xembed
author corvid <corvid@lavabit.com>
date Sat, 08 Jan 2011 04:23:26 +0000
parents 8a5a07c67265
children 879c110ecb57
rev   line source
1162
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
1 /*
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
2 * File: xembed.cc
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
3 *
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
4 * Copyright (C) 2009 Jorge Arellano Cid <jcid@dillo.org>
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
5 *
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
6 * This program is free software; you can redistribute it and/or modify
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
7 * it under the terms of the GNU General Public License as published by
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
8 * the Free Software Foundation; either version 3 of the License, or
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
9 * (at your option) any later version.
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
10 */
10f63c2c8430 add Copyright
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1144
diff changeset
11
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
12 #include <string.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
13 #include <ctype.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
14
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
15 #include <FL/Fl_Window.H>
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
16 #include <FL/Fl.H>
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
17 #include <FL/x.H>
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
18
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
19 #include "xembed.hh"
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
20
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
21 #if USE_X11
1163
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1162
diff changeset
22
1326
02ef25700865 trim some spaces
corvid <corvid@lavabit.com>
parents: 1186
diff changeset
23 typedef enum {
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
24 XEMBED_EMBEDDED_NOTIFY = 0,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
25 XEMBED_WINDOW_ACTIVATE = 1,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
26 XEMBED_WINDOW_DEACTIVATE = 2,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
27 XEMBED_REQUEST_FOCUS = 3,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
28 XEMBED_FOCUS_IN = 4,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
29 XEMBED_FOCUS_OUT = 5,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
30 XEMBED_FOCUS_NEXT = 6,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
31 XEMBED_FOCUS_PREV = 7,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
32 XEMBED_GRAB_KEY = 8,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
33 XEMBED_UNGRAB_KEY = 9,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
34 XEMBED_MODALITY_ON = 10,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
35 XEMBED_MODALITY_OFF = 11,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
36 } XEmbedMessageType;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
37
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
38 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
39 Xembed::setXembedInfo(unsigned long flags)
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
40 {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
41 unsigned long buffer[2];
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
42
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
43 Atom xembed_info_atom = XInternAtom (fltk::xdisplay, "_XEMBED_INFO", false);
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 buffer[0] = 1;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
46 buffer[1] = flags;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
47
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
48 XChangeProperty (fltk::xdisplay,
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
49 xid,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
50 xembed_info_atom, xembed_info_atom, 32,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
51 PropModeReplace,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
52 (unsigned char *)buffer, 2);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
53 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
54
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
55 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
56 Xembed::sendXembedEvent(uint32_t message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
57 XClientMessageEvent xclient;
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
58
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
59 memset (&xclient, 0, sizeof (xclient));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
60 xclient.window = xid;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
61 xclient.type = ClientMessage;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
62 xclient.message_type = XInternAtom (fltk::xdisplay, "_XEMBED", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
63 xclient.format = 32;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
64 xclient.data.l[0] = fltk::event_time;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
65 xclient.data.l[1] = message;
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 XSendEvent(fltk::xdisplay, xid, False, NoEventMask, (XEvent *)&xclient);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
68 XSync(fltk::xdisplay, False);
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
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
71 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
72 Xembed::handle(int e) {
1791
corvid <corvid@lavabit.com>
parents: 1326
diff changeset
73 if (e == FL_PUSH)
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
74 sendXembedEvent(XEMBED_REQUEST_FOCUS);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
75
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
76 return Fl_Window::handle(e);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
77 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
78
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
79 static int event_handler(int e, Fl_Window *w) {
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
80 Atom xembed_atom = XInternAtom (fltk::xdisplay, "_XEMBED", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
81
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
82 if (fltk::xevent.type == ClientMessage) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
83 if (fltk::xevent.xclient.message_type == xembed_atom) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
84 long message = fltk::xevent.xclient.data.l[1];
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
85
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
86 switch (message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
87 case XEMBED_WINDOW_ACTIVATE:
1138
227999b86d9b comment
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1137
diff changeset
88 // Force a ConfigureNotify message so fltk can get the new
227999b86d9b comment
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1137
diff changeset
89 // coordinates after a move of the embedder window.
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
90 w->resize(0, 0, w->w(), w->h());
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
91 break;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
92 case XEMBED_WINDOW_DEACTIVATE:
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
93 break;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
94 default:
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
95 break;
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 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
98 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
99
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
100 return 0;
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
1163
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1162
diff changeset
103 // TODO: Implement more XEMBED support;
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
104
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
105 void Xembed::create() {
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
106 createInternal(xid);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
107 setXembedInfo(1);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
108 fltk::add_event_handler(event_handler);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
109 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
110
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
111 void Xembed::createInternal(uint32_t parent) {
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
112 Fl_Window *window = this;
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
113 Colormap colormap = fltk::xcolormap;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
114
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
115 XSetWindowAttributes attr;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
116 attr.border_pixel = 0;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
117 attr.colormap = colormap;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
118 attr.bit_gravity = 0; // StaticGravity;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
119 int mask = CWBorderPixel|CWColormap|CWEventMask|CWBitGravity;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
120
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
121 int W = window->w();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
122 if (W <= 0) W = 1; // X don't like zero...
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
123 int H = window->h();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
124 if (H <= 0) H = 1; // X don't like zero...
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
125 int X = window->x();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
126 int Y = window->y();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
127
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
128 attr.event_mask =
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
129 ExposureMask | StructureNotifyMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
130 | KeyPressMask | KeyReleaseMask | KeymapStateMask | FocusChangeMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
131 | ButtonPressMask | ButtonReleaseMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
132 | EnterWindowMask | LeaveWindowMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
133 | PointerMotionMask;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
134
1144
506c8c23d638 remove unused variable
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1142
diff changeset
135 fltk::CreatedWindow::set_xid(window,
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
136 XCreateWindow(fltk::xdisplay,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
137 parent,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
138 X, Y, W, H,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
139 0, // borderwidth
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
140 fltk::xvisual->depth,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
141 InputOutput,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
142 fltk::xvisual->visual,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
143 mask, &attr));
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
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
146 #else // USE_X11
1139
b3369670ced5 remove debug printf
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1138
diff changeset
147
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
148 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
149 Xembed::setXembedInfo(unsigned long flags) {};
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
150
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
151 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
152 Xembed::sendXembedEvent(uint32_t message) {};
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
153
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
154 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
155 Xembed::handle(int e) {
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
156 return Fl_Window::handle(e);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
157 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
158
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
159 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
160 Xembed::create() {
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
161 Fl_Window::create();
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
162 }
1139
b3369670ced5 remove debug printf
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1138
diff changeset
163
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
164 #endif