--- sourceforge.net/trunk/rdesktop/rdesktop.c 2002/07/18 18:28:12 66 +++ sourceforge.net/trunk/rdesktop/rdesktop.c 2002/07/29 20:16:22 76 @@ -43,6 +43,7 @@ BOOL encryption = True; BOOL desktop_save = True; BOOL fullscreen = False; +BOOL grab_keyboard = True; /* Display usage information */ static void @@ -63,6 +64,7 @@ printf(" -m: do not send motion events\n"); printf(" -l: do not request licence\n"); printf(" -t: rdp tcp port\n\n"); + printf(" -K: keep window manager key bindings\n"); } /* Client program */ @@ -89,7 +91,7 @@ domain[0] = password[0] = shell[0] = directory[0] = 0; strcpy(keymapname, "us"); - while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:t:fbemlh?")) != -1) + while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:t:fbemlKh?")) != -1) { switch (c) { @@ -159,6 +161,10 @@ tcp_port_rdp = strtol(optarg, NULL, 10); break; + case 'K': + grab_keyboard = False; + break; + case 'h': case '?': default: