Skip to content

Commit e520ce3

Browse files
Naruhitomatt335672
Naruhito
authored andcommitted
Proxy extended mouse button 8, 9 events
neutrinolabs#2860 (comment)
1 parent 94b1481 commit e520ce3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

neutrinordp/xrdp-neutrinordp.c

+32
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,38 @@ lxrdp_event(struct mod *mod, int msg, long param1, long param2,
423423
case 110:
424424
break;
425425

426+
case 115: /* extended mouse button8 up */
427+
LOG_DEVEL(LOG_LEVEL_DEBUG, "extended mouse button8 up %ld %ld", param1, param2);
428+
x = param1;
429+
y = param2;
430+
flags = PTR_XFLAGS_BUTTON1;
431+
mod->inst->input->ExtendedMouseEvent(mod->inst->input, flags, x, y);
432+
break;
433+
434+
case 116: /* extended mouse button8 down */
435+
LOG_DEVEL(LOG_LEVEL_DEBUG, "extended mouse button8 down %ld %ld", param1, param2);
436+
x = param1;
437+
y = param2;
438+
flags = PTR_XFLAGS_BUTTON1 | PTR_XFLAGS_DOWN;
439+
mod->inst->input->ExtendedMouseEvent(mod->inst->input, flags, x, y);
440+
break;
441+
442+
case 117: /* extended mouse button9 up */
443+
LOG_DEVEL(LOG_LEVEL_DEBUG, "extended mouse button9 up %ld %ld", param1, param2);
444+
x = param1;
445+
y = param2;
446+
flags = PTR_XFLAGS_BUTTON2;
447+
mod->inst->input->ExtendedMouseEvent(mod->inst->input, flags, x, y);
448+
break;
449+
450+
case 118: /* extended mouse button9 down */
451+
LOG_DEVEL(LOG_LEVEL_DEBUG, "extended mouse button9 down %ld %ld", param1, param2);
452+
x = param1;
453+
y = param2;
454+
flags = PTR_XFLAGS_BUTTON2 | PTR_XFLAGS_DOWN;
455+
mod->inst->input->ExtendedMouseEvent(mod->inst->input, flags, x, y);
456+
break;
457+
426458
case 200:
427459
LOG_DEVEL(LOG_LEVEL_DEBUG, "Invalidate request sent from client");
428460
x = (param1 >> 16) & 0xffff;

0 commit comments

Comments
 (0)