mirror of https://github.com/FreeRDP/FreeRDP
fix +unmap-buttons option having the opposite effect
This commit is contained in:
parent
5c0ccb7575
commit
4607a2766a
|
@ -1120,7 +1120,7 @@ static void xf_button_map_init(xfContext* xfc)
|
||||||
x11_map[111] = 112;
|
x11_map[111] = 112;
|
||||||
|
|
||||||
/* query system for actual remapping */
|
/* query system for actual remapping */
|
||||||
if (!xfc->context.settings->UnmapButtons)
|
if (xfc->context.settings->UnmapButtons)
|
||||||
{
|
{
|
||||||
xf_get_x11_button_map(xfc, x11_map);
|
xf_get_x11_button_map(xfc, x11_map);
|
||||||
}
|
}
|
||||||
|
@ -1142,8 +1142,8 @@ static void xf_button_map_init(xfContext* xfc)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
button_map* map = &xfc->button_map[pos++];
|
button_map* map = &xfc->button_map[pos++];
|
||||||
map->button = physical + Button1;
|
map->button = logical;
|
||||||
map->flags = get_flags_for_button(logical);
|
map->flags = get_flags_for_button(physical + Button1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue