annotate src/xembed.cc @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents d03d62c2ed36
children
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
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
15 #define FL_INTERNALS
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
16 #include <FL/Fl_Window.H>
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
17 #include <FL/Fl.H>
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
18 #include <FL/x.H>
1110
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
19
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
20 #include "xembed.hh"
b76606e867fe add missing xembed files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
diff changeset
21
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
22 #ifdef X_PROTOCOL
1163
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1162
diff changeset
23
1326
02ef25700865 trim some spaces
corvid <corvid@lavabit.com>
parents: 1186
diff changeset
24 typedef enum {
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
25 XEMBED_EMBEDDED_NOTIFY = 0,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
26 XEMBED_WINDOW_ACTIVATE = 1,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
27 XEMBED_WINDOW_DEACTIVATE = 2,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
28 XEMBED_REQUEST_FOCUS = 3,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
29 XEMBED_FOCUS_IN = 4,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
30 XEMBED_FOCUS_OUT = 5,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
31 XEMBED_FOCUS_NEXT = 6,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
32 XEMBED_FOCUS_PREV = 7,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
33 XEMBED_GRAB_KEY = 8,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
34 XEMBED_UNGRAB_KEY = 9,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
35 XEMBED_MODALITY_ON = 10,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
36 XEMBED_MODALITY_OFF = 11,
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
37 } XEmbedMessageType;
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 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
40 Xembed::setXembedInfo(unsigned long flags)
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
41 {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
42 unsigned long buffer[2];
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
43
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
44 Atom xembed_info_atom = XInternAtom (fl_display, "_XEMBED_INFO", false);
1137
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 buffer[0] = 1;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
47 buffer[1] = flags;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
48
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
49 XChangeProperty (fl_display,
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
50 xid,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
51 xembed_info_atom, xembed_info_atom, 32,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
52 PropModeReplace,
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
53 (unsigned char *)buffer, 2);
1137
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
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
56 void
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
57 Xembed::sendXembedEvent(uint32_t message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
58 XClientMessageEvent xclient;
1142
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1139
diff changeset
59
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
60 memset (&xclient, 0, sizeof (xclient));
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
61 xclient.window = xid;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
62 xclient.type = ClientMessage;
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
63 xclient.message_type = XInternAtom (fl_display, "_XEMBED", false);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
64 xclient.format = 32;
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
65 xclient.data.l[0] = fl_event_time;
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
66 xclient.data.l[1] = message;
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
67
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
68 XSendEvent(fl_display, xid, False, NoEventMask, (XEvent *)&xclient);
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
69 XSync(fl_display, False);
1137
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
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
72 int
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
73 Xembed::handle(int e) {
1791
corvid <corvid@lavabit.com>
parents: 1326
diff changeset
74 if (e == FL_PUSH)
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
75 sendXembedEvent(XEMBED_REQUEST_FOCUS);
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
76
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
77 return Fl_Window::handle(e);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
78 }
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
79
2062
d03d62c2ed36 more xembed porting
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 2001
diff changeset
80 static int event_handler(int e, Fl_Window *w) {
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
81 Atom xembed_atom = XInternAtom (fl_display, "_XEMBED", false);
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
82
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
83 if (fl_xevent->type == ClientMessage) {
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
84 if (fl_xevent->xclient.message_type == xembed_atom) {
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
85 long message = fl_xevent->xclient.data.l[1];
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
86
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
87 switch (message) {
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
88 case XEMBED_WINDOW_ACTIVATE:
1138
227999b86d9b comment
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1137
diff changeset
89 // Force a ConfigureNotify message so fltk can get the new
227999b86d9b comment
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1137
diff changeset
90 // coordinates after a move of the embedder window.
2062
d03d62c2ed36 more xembed porting
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 2001
diff changeset
91 if (w)
d03d62c2ed36 more xembed porting
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 2001
diff changeset
92 w->resize(0,0, w->w(), w->h());
1137
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
2062
d03d62c2ed36 more xembed porting
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 2001
diff changeset
102 return Fl::handle_(e, w);
1137
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
1163
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1162
diff changeset
105 // TODO: Implement more XEMBED support;
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
106
2001
3e1144e4a40f initial take on Xembed port to fltk-1.3
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1873
diff changeset
107 void Xembed::show() {
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);
2062
d03d62c2ed36 more xembed porting
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 2001
diff changeset
110 Fl::event_dispatch(event_handler);
1137
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) {
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
114 Fl_Window *window = this;
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
115 Colormap colormap = fl_colormap;
1137
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
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
137 Fl_X::set_xid(window,
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
138 XCreateWindow(fl_display,
1137
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
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
142 fl_visual->depth,
1137
f10904ac58b4 more xembed work
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1123
diff changeset
143 InputOutput,
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
144 fl_visual->visual,
1137
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
1873
corvid <corvid@lavabit.com>
parents: 1836
diff changeset
148 #else // X_PROTOCOL
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) {
1820
0c700b9cd251 some xembed
corvid <corvid@lavabit.com>
parents: 1791
diff changeset
158 return Fl_Window::handle(e);
1137
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
2001
3e1144e4a40f initial take on Xembed port to fltk-1.3
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1873
diff changeset
162 Xembed::show() {
3e1144e4a40f initial take on Xembed port to fltk-1.3
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents: 1873
diff changeset
163 Fl_Window::show();
1137
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