45 |
char hostname[16]; |
char hostname[16]; |
46 |
char keymapname[16]; |
char keymapname[16]; |
47 |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
48 |
int width = 800; |
int width = 800; /* If width or height are reset to zero, the geometry will |
49 |
|
be fetched from _NET_WORKAREA */ |
50 |
int height = 600; |
int height = 600; |
51 |
int tcp_port_rdp = TCP_PORT_RDP; |
int tcp_port_rdp = TCP_PORT_RDP; |
52 |
BOOL bitmap_compression = True; |
BOOL bitmap_compression = True; |
56 |
BOOL desktop_save = True; |
BOOL desktop_save = True; |
57 |
BOOL fullscreen = False; |
BOOL fullscreen = False; |
58 |
BOOL grab_keyboard = True; |
BOOL grab_keyboard = True; |
59 |
|
BOOL hide_decorations = False; |
60 |
|
|
61 |
/* Display usage information */ |
/* Display usage information */ |
62 |
static void |
static void |
81 |
fprintf(stderr, " -m: do not send motion events\n"); |
fprintf(stderr, " -m: do not send motion events\n"); |
82 |
fprintf(stderr, " -K: keep window manager key bindings\n"); |
fprintf(stderr, " -K: keep window manager key bindings\n"); |
83 |
fprintf(stderr, " -T: window title\n"); |
fprintf(stderr, " -T: window title\n"); |
84 |
|
fprintf(stderr, " -D: hide window manager decorations\n"); |
85 |
} |
} |
86 |
|
|
87 |
static BOOL |
static BOOL |
141 |
domain[0] = password[0] = shell[0] = directory[0] = 0; |
domain[0] = password[0] = shell[0] = directory[0] = 0; |
142 |
strcpy(keymapname, "en-us"); |
strcpy(keymapname, "en-us"); |
143 |
|
|
144 |
while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemKT:h?")) != -1) |
while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemKT:Dh?")) != -1) |
145 |
{ |
{ |
146 |
switch (c) |
switch (c) |
147 |
{ |
{ |
186 |
break; |
break; |
187 |
|
|
188 |
case 'g': |
case 'g': |
189 |
|
if (!strcmp(optarg, "workarea")) |
190 |
|
{ |
191 |
|
width = height = 0; |
192 |
|
break; |
193 |
|
} |
194 |
|
|
195 |
width = strtol(optarg, &p, 10); |
width = strtol(optarg, &p, 10); |
196 |
if (*p == 'x') |
if (*p == 'x') |
197 |
height = strtol(p + 1, NULL, 10); |
height = strtol(p + 1, NULL, 10); |
227 |
STRNCPY(title, optarg, sizeof(title)); |
STRNCPY(title, optarg, sizeof(title)); |
228 |
break; |
break; |
229 |
|
|
230 |
|
case 'D': |
231 |
|
hide_decorations = True; |
232 |
|
break; |
233 |
|
|
234 |
case 'h': |
case 'h': |
235 |
case '?': |
case '?': |
236 |
default: |
default: |