fix +unmap-buttons option having the opposite effect

This commit is contained in:
makki_d 2020-06-04 18:22:55 +09:00
parent 5c0ccb7575
commit 4607a2766a
1 changed files with 3 additions and 3 deletions

View File

@ -1120,7 +1120,7 @@ static void xf_button_map_init(xfContext* xfc)
x11_map[111] = 112;
/* query system for actual remapping */
if (!xfc->context.settings->UnmapButtons)
if (xfc->context.settings->UnmapButtons)
{
xf_get_x11_button_map(xfc, x11_map);
}
@ -1142,8 +1142,8 @@ static void xf_button_map_init(xfContext* xfc)
else
{
button_map* map = &xfc->button_map[pos++];
map->button = physical + Button1;
map->flags = get_flags_for_button(logical);
map->button = logical;
map->flags = get_flags_for_button(physical + Button1);
}
}
}