mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[client,x11] reconfigure mouse mapping on MappingPointer
This commit is contained in:
@@ -1076,7 +1076,7 @@ static UINT16 get_flags_for_button(size_t button)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void xf_button_map_init(xfContext* xfc)
|
||||
void xf_button_map_init(xfContext* xfc)
|
||||
{
|
||||
size_t pos = 0;
|
||||
/* loop counter for array initialization */
|
||||
|
||||
@@ -734,6 +734,7 @@ static BOOL xf_event_MappingNotify(xfContext* xfc, const XMappingEvent* event, B
|
||||
return xf_keyboard_init(xfc);
|
||||
case MappingPointer:
|
||||
WLog_VRB(TAG, "[%d] MappingPointer", event->request);
|
||||
xf_button_map_init(xfc);
|
||||
return TRUE;
|
||||
default:
|
||||
WLog_WARN(TAG,
|
||||
|
||||
@@ -42,4 +42,6 @@ BOOL xf_keyboard_set_ime_status(rdpContext* context, UINT16 imeId, UINT32 imeSta
|
||||
|
||||
BOOL xf_ungrab(xfContext* xfc);
|
||||
|
||||
void xf_button_map_init(xfContext* xfc);
|
||||
|
||||
#endif /* FREERDP_CLIENT_X11_XF_KEYBOARD_H */
|
||||
|
||||
Reference in New Issue
Block a user