summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Grandy <jgrandy@authentic8.com>2013-07-06 08:19:39 -0700
committerJim Grandy <jgrandy@authentic8.com>2013-07-06 08:19:39 -0700
commitadb8a359f3b0241d4792c44fdbd2f1ba1401d45c (patch)
tree960bdb508e8a8221fee7b4b284c3064225d7c633
parent30f10284d75d79300fc0ef64aa46c58c89387a22 (diff)
downloadxrdp-proprietary-adb8a359f3b0241d4792c44fdbd2f1ba1401d45c.tar.gz
xrdp-proprietary-adb8a359f3b0241d4792c44fdbd2f1ba1401d45c.zip
Hand-apply patch (Update cursor location whenever receiving mouse down events) from Authentic8: 19f1718
-rw-r--r--xorg/X11R7.6/rdp/rdpup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdpup.c b/xorg/X11R7.6/rdp/rdpup.c
index 819c84a7..50f73492 100644
--- a/xorg/X11R7.6/rdp/rdpup.c
+++ b/xorg/X11R7.6/rdp/rdpup.c
@@ -680,6 +680,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
case 102:
+ g_cursor_x = l_bound_by(param1, 0, g_rdpScreen.width - 2);
+ g_cursor_y = l_bound_by(param2, 0, g_rdpScreen.height - 2);
g_button_mask = g_button_mask | 1;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
@@ -688,6 +690,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
case 104:
+ g_cursor_x = l_bound_by(param1, 0, g_rdpScreen.width - 2);
+ g_cursor_y = l_bound_by(param2, 0, g_rdpScreen.height - 2);
g_button_mask = g_button_mask | 4;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
@@ -696,6 +700,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
case 106:
+ g_cursor_x = l_bound_by(param1, 0, g_rdpScreen.width - 2);
+ g_cursor_y = l_bound_by(param2, 0, g_rdpScreen.height - 2);
g_button_mask = g_button_mask | 2;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
@@ -704,6 +710,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
case 108:
+ g_cursor_x = l_bound_by(param1, 0, g_rdpScreen.width - 2);
+ g_cursor_y = l_bound_by(param2, 0, g_rdpScreen.height - 2);
g_button_mask = g_button_mask | 8;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
@@ -712,6 +720,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;
case 110:
+ g_cursor_x = l_bound_by(param1, 0, g_rdpScreen.width - 2);
+ g_cursor_y = l_bound_by(param2, 0, g_rdpScreen.height - 2);
g_button_mask = g_button_mask | 16;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break;