mirror of https://github.com/neutrinolabs/xrdp
adding xrdp.ini option to turn off new cursors
This commit is contained in:
parent
b4ff5e1d88
commit
42329bda00
|
@ -90,7 +90,7 @@ struct xrdp_client_info
|
|||
char orders[32];
|
||||
int order_flags_ex;
|
||||
int use_bulk_comp;
|
||||
int pointer_flags; /* 0 color, 1 new */
|
||||
int pointer_flags; /* 0 color, 1 new, 2 no new */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -437,7 +437,8 @@ libxrdp_send_pointer(struct xrdp_session *session, int cache_idx,
|
|||
{
|
||||
if (bpp != 24)
|
||||
{
|
||||
g_writeln("libxrdp_send_pointer: error");
|
||||
g_writeln("libxrdp_send_pointer: error client does not support "
|
||||
"new cursors and bpp is %d", bpp);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,6 +131,10 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info)
|
|||
{
|
||||
client_info->max_bpp = g_atoi(value);
|
||||
}
|
||||
else if (g_strcasecmp(item, "new_cursors") == 0)
|
||||
{
|
||||
client_info->pointer_flags = text2bool(value) == 0 ? 2 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
list_delete(items);
|
||||
|
|
|
@ -27,6 +27,7 @@ tcp_keepalive=yes
|
|||
#bulk_compression=yes
|
||||
# You can set the PAM error text in a gateway setup (MAX 256 chars)
|
||||
#pamerrortxt=change your password according to policy at http://url
|
||||
#new_cursors=no
|
||||
|
||||
[Logging]
|
||||
LogFile=xrdp.log
|
||||
|
|
Loading…
Reference in New Issue