Skip to content

Commit

Permalink
fix code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
seflerZ committed Sep 15, 2022
1 parent 6cc842b commit 9d33b4c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions xrdp/xrdp_wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,16 +1236,17 @@ xrdp_wm_mouse_touch(struct xrdp_wm *self, int gesture, int param)
{
LOG(LOG_LEVEL_DEBUG, "mouse touch event gesture %d param %d", gesture, param);

switch (gesture) {
switch (gesture)
{
// vertical scroll
case 0:
self->mm->mod->mod_event(self->mm->mod, WM_TOUCH_VSCROLL,
self->mouse_x, self->mouse_y, param, 0);
self->mouse_x, self->mouse_y, param, 0);
break;
// horizantal scroll
case 1:
self->mm->mod->mod_event(self->mm->mod, WM_TOUCH_HSCROLL,
self->mouse_x, self->mouse_y, param, 0);
self->mouse_x, self->mouse_y, param, 0);
break;
}

Expand Down Expand Up @@ -1802,7 +1803,7 @@ xrdp_wm_process_input_mouse(struct xrdp_wm *self, int device_flags,
{
// [MS-RDPBCGR] In negative scrolling, rotation distance is negative.
delta = (device_flags & WheelRotationMask) | ~WheelRotationMask;
if (delta != 0)
if (delta != 0)
{
xrdp_wm_mouse_touch(self, 0, delta);
}
Expand Down Expand Up @@ -1838,7 +1839,7 @@ xrdp_wm_process_input_mouse(struct xrdp_wm *self, int device_flags,
{
// [MS-RDPBCGR] In negative scrolling, rotation distance is negative.
delta = (device_flags & WheelRotationMask) | ~WheelRotationMask;
if (delta != 0)
if (delta != 0)
{
xrdp_wm_mouse_touch(self, 1, delta);
}
Expand Down

0 comments on commit 9d33b4c

Please sign in to comment.