Hand-apply patch (Update cursor location whenever receiving mouse down events) from Authentic8: 19f1718

ulab-next
Jim Grandy 12 years ago
parent 9d4205ba7a
commit 2291519714

@ -680,6 +680,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
case 102: 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; g_button_mask = g_button_mask | 1;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
@ -688,6 +690,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
case 104: 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; g_button_mask = g_button_mask | 4;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
@ -696,6 +700,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
case 106: 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; g_button_mask = g_button_mask | 2;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
@ -704,6 +710,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
case 108: 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; g_button_mask = g_button_mask | 8;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
@ -712,6 +720,8 @@ rdpup_process_msg(struct stream *s)
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;
case 110: 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; g_button_mask = g_button_mask | 16;
PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y); PtrAddEvent(g_button_mask, g_cursor_x, g_cursor_y);
break; break;

Loading…
Cancel
Save