annotate src/xembed.cc @ 1162:10f63c2c8430

add Copyright
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Sat, 06 Jun 2009 21:23:04 +0200
parents 506c8c23d638
children f7a33ec4f4de
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 <stdio.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
13 #include <string.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
14 #include <ctype.h>
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
15
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
16 #include <fltk/Window.h>
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
17 #include <fltk/x11.h>
1114
d5bcb4123441 fix xembed stuff with reparenting WMs
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1110
diff changeset
18 #include <fltk/run.h>
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
19 #include <fltk/events.h>
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
20 #include <fltk/x.h>
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
21
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
22 #include "xembed.hh"
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
23
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
24 #if USE_X11
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
25 typedef enum {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
26 XEMBED_EMBEDDED_NOTIFY = 0,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
27 XEMBED_WINDOW_ACTIVATE = 1,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
28 XEMBED_WINDOW_DEACTIVATE = 2,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
29 XEMBED_REQUEST_FOCUS = 3,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
30 XEMBED_FOCUS_IN = 4,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
31 XEMBED_FOCUS_OUT = 5,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
32 XEMBED_FOCUS_NEXT = 6,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
33 XEMBED_FOCUS_PREV = 7,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
34 XEMBED_GRAB_KEY = 8,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
35 XEMBED_UNGRAB_KEY = 9,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
36 XEMBED_MODALITY_ON = 10,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
37 XEMBED_MODALITY_OFF = 11,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
38 } XEmbedMessageType;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
39
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
40 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
41 Xembed::setXembedInfo(unsigned long flags)
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 unsigned long 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 Atom xembed_info_atom = XInternAtom (fltk::xdisplay, "_XEMBED_INFO", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
46
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
47 buffer[0] = 1;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
48 buffer[1] = flags;
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 XChangeProperty (fltk::xdisplay,
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
51 xid,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
52 xembed_info_atom, xembed_info_atom, 32,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
53 PropModeReplace,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
54 (unsigned char *)buffer, 2);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
55 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
56
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
57 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
58 Xembed::sendXembedEvent(uint32_t message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
59 XClientMessageEvent xclient;
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
60
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
61 memset (&xclient, 0, sizeof (xclient));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
62 xclient.window = xid;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
63 xclient.type = ClientMessage;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
64 xclient.message_type = XInternAtom (fltk::xdisplay, "_XEMBED", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
65 xclient.format = 32;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
66 xclient.data.l[0] = fltk::event_time;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
67 xclient.data.l[1] = message;
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 XSendEvent(fltk::xdisplay, xid, False, NoEventMask, (XEvent *)&xclient);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
70 XSync(fltk::xdisplay, False);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
71 }
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 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
74 Xembed::handle(int e) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
75 if (e == fltk::PUSH)
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
76 sendXembedEvent(XEMBED_REQUEST_FOCUS);
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 return Window::handle(e);
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
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
81 static int event_handler(int e, fltk::Window *w) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
82 Atom xembed_atom = XInternAtom (fltk::xdisplay, "_XEMBED", false);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
83
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
84 if (fltk::xevent.type == ClientMessage) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
85 if (fltk::xevent.xclient.message_type == xembed_atom) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
86 long message = fltk::xevent.xclient.data.l[1];
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
87
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
88 switch (message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
89 case XEMBED_WINDOW_ACTIVATE:
1138
227999b86d9b comment
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1137
diff changeset
90 // Force a ConfigureNotify message so fltk can get the new
227999b86d9b comment
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1137
diff changeset
91 // coordinates after a move of the embedder window.
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
92 w->resize(0, 0, w->w(), w->h());
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 case XEMBED_WINDOW_DEACTIVATE:
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 default:
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
97 break;
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 }
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 return 0;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
103 }
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 // TODO; Implement more XEMBED support;
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 void Xembed::create() {
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
108 createInternal(xid);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
109 setXembedInfo(1);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
110 fltk::add_event_handler(event_handler);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
111 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
112
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
113 void Xembed::createInternal(uint32_t parent) {
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
114 fltk::Window *window = this;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
115 Colormap colormap = fltk::xcolormap;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
116
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
117 XSetWindowAttributes attr;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
118 attr.border_pixel = 0;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
119 attr.colormap = colormap;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
120 attr.bit_gravity = 0; // StaticGravity;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
121 int mask = CWBorderPixel|CWColormap|CWEventMask|CWBitGravity;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
122
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
123 int W = window->w();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
124 if (W <= 0) W = 1; // X don't like zero...
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
125 int H = window->h();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
126 if (H <= 0) H = 1; // X don't like zero...
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
127 int X = window->x();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
128 int Y = window->y();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
129
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
130 attr.event_mask =
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
131 ExposureMask | StructureNotifyMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
132 | KeyPressMask | KeyReleaseMask | KeymapStateMask | FocusChangeMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
133 | ButtonPressMask | ButtonReleaseMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
134 | EnterWindowMask | LeaveWindowMask
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
135 | PointerMotionMask;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
136
1144
506c8c23d638 remove unused variable
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1142
diff changeset
137 fltk::CreatedWindow::set_xid(window,
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
138 XCreateWindow(fltk::xdisplay,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
139 parent,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
140 X, Y, W, H,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
141 0, // borderwidth
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
142 fltk::xvisual->depth,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
143 InputOutput,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
144 fltk::xvisual->visual,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
145 mask, &attr));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
146 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
147
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
148 #else // USE_X11
1139
b3369670ced5 remove debug printf
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1138
diff changeset
149
1137
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::setXembedInfo(unsigned long flags) {};
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
152
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
153 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
154 Xembed::sendXembedEvent(uint32_t message) {};
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
155
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
156 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
157 Xembed::handle(int e) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
158 return Window::handle(e);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
159 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
160
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
161 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
162 Xembed::create() {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
163 Window::create();
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
164 }
1139
b3369670ced5 remove debug printf
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1138
diff changeset
165
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
166 #endif