From 8c4019b9086a0bd9d50bfa17d0ef8bcf0147d32c Mon Sep 17 00:00:00 2001 From: Jim Grandy Date: Sat, 6 Jul 2013 08:19:39 -0700 Subject: [PATCH] Hand-apply patch (Update cursor location whenever receiving mouse down events) from Authentic8: 19f1718 --- xorg/X11R7.6/rdp/rdpup.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;