diff options
author | Jim Grandy <jgrandy@authentic8.com> | 2013-07-06 08:19:39 -0700 |
---|---|---|
committer | Jim Grandy <jgrandy@authentic8.com> | 2013-08-22 12:52:32 -0700 |
commit | 22915197142f43193701ccaec4349d39c32a0107 (patch) | |
tree | 609d742fd11e9327e31a60a6b5501978b209f084 /xorg/X11R7.6 | |
parent | 9d4205ba7a7545a106318c6892e14189524b8542 (diff) | |
download | xrdp-proprietary-22915197142f43193701ccaec4349d39c32a0107.tar.gz xrdp-proprietary-22915197142f43193701ccaec4349d39c32a0107.zip |
Hand-apply patch (Update cursor location whenever receiving mouse down events) from Authentic8: 19f1718
Diffstat (limited to 'xorg/X11R7.6')
-rw-r--r-- | xorg/X11R7.6/rdp/rdpup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdpup.c b/xorg/X11R7.6/rdp/rdpup.c index 4297d77a..f97096f5 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; |