1 --- rdesktop.c.orig 2004-03-08 18:02:58.000000000 +0100
2 +++ rdesktop.c 2004-03-09 22:32:19.000000000 +0100
4 #include <sys/time.h> /* gettimeofday */
5 #include <sys/times.h> /* times */
7 +#include <X11/Xlib.h> /* Window */
12 BOOL g_console_session = False;
13 BOOL g_numlock_sync = False;
14 extern BOOL g_owncolmap;
15 +extern Window g_embed_wnd;
18 BOOL g_rdpsnd = False;
20 fprintf(stderr, " -S: caption button size (single application mode)\n");
21 fprintf(stderr, " -T: window title\n");
22 fprintf(stderr, " -N: enable numlock synchronisation\n");
23 + fprintf(stderr, " -X: embed into another window with a given id.\n");
24 fprintf(stderr, " -a: connection colour depth\n");
25 fprintf(stderr, " -r: enable specified device redirection (currently: sound)\n");
26 fprintf(stderr, " -0: attach to console\n");
28 prompt_password = False;
29 domain[0] = password[0] = shell[0] = directory[0] = 0;
30 strcpy(keymapname, "en-us");
39 - while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:Na:r:045h?")) != -1)
40 + while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:NX:a:r:045h?")) != -1)
45 g_numlock_sync = True;
49 + g_embed_wnd = strtod(optarg, NULL);
53 g_server_bpp = strtol(optarg, NULL, 10);
54 if (g_server_bpp != 8 && g_server_bpp != 16 && g_server_bpp != 15
55 --- xwin.c.orig 2004-03-08 18:02:58.000000000 +0100
56 +++ xwin.c 2004-03-10 16:17:59.000000000 +0100
58 static int g_x_socket;
59 static Screen *g_screen;
62 BOOL g_enable_compose = False;
64 static BOOL g_gc_initialized = False;
71 + XReparentWindow(g_display, g_wnd, g_embed_wnd, 0, 0);
74 input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
75 VisibilityChangeMask | FocusChangeMask;