Make the XReparent Window parameter a little more flexible to support both base 16 "with 0x prefix" or decimal window numbers.
This commit is contained in:
parent
70ccbd1926
commit
138f115d73
@ -479,7 +479,7 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
|
||||
return FREERDP_ARGS_PARSE_FAILURE;
|
||||
}
|
||||
|
||||
settings->parent_window_xid = strtoul(argv[index], NULL, 16);
|
||||
settings->parent_window_xid = strtol(argv[index], NULL, 0);
|
||||
|
||||
if (settings->parent_window_xid == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user