summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-06-07 23:43:58 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-06-07 23:43:58 -0700
commit42329bda00ed00c6cf5c9a7b619f8f436c3b429e (patch)
tree6d321b41d2210f1991cdd902554bad83a16bceea /libxrdp
parentb4ff5e1d88c9e6f7ff162a016f31e59a4928e77d (diff)
downloadxrdp-proprietary-42329bda00ed00c6cf5c9a7b619f8f436c3b429e.tar.gz
xrdp-proprietary-42329bda00ed00c6cf5c9a7b619f8f436c3b429e.zip
adding xrdp.ini option to turn off new cursors
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/libxrdp.c3
-rw-r--r--libxrdp/xrdp_rdp.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c
index 19e8a2c6..3da32937 100644
--- a/libxrdp/libxrdp.c
+++ b/libxrdp/libxrdp.c
@@ -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;
}
}
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index 642da9b0..cd127964 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -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);