This commit is contained in:
sasha0552 2024-05-28 11:13:09 +00:00 committed by GitHub
parent fe942d4688
commit 4c7137b6ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -144,6 +144,8 @@ xrdp_wm_get_vis_region(struct xrdp_wm *self, struct xrdp_bitmap *bitmap,
int
xrdp_wm_mouse_move(struct xrdp_wm *self, int x, int y);
int
xrdp_wm_mouse_relative_move(struct xrdp_wm *self, int xDelta, int yDelta);
int
xrdp_wm_mouse_touch(struct xrdp_wm *self, int gesture, int param);
int
xrdp_wm_mouse_click(struct xrdp_wm *self, int x, int y, int but, int down);

View File

@ -1248,8 +1248,6 @@ xrdp_wm_mouse_move(struct xrdp_wm *self, int x, int y)
int
xrdp_wm_mouse_relative_move(struct xrdp_wm *self, int xDelta, int yDelta)
{
struct xrdp_bitmap *b;
if (self == 0)
{
return 0;
@ -2021,7 +2019,7 @@ static int
xrdp_wm_process_input_mouse(struct xrdp_wm *self, int device_flags,
int x, int y)
{
return xrdp_wm_process_input_mouse_common(self, device_flags, TRUE, x, y);
return xrdp_wm_process_input_mouse_common(self, device_flags, 1, x, y);
}
/*****************************************************************************/
@ -2059,7 +2057,7 @@ static int
xrdp_wm_process_input_mouserel(struct xrdp_wm *self, int device_flags,
int xDelta, int yDelta)
{
return xrdp_wm_process_input_mouse_common(self, device_flags, FALSE, x, y);
return xrdp_wm_process_input_mouse_common(self, device_flags, 0, xDelta, yDelta);
}
/******************************************************************************/