};
/* query system for actual remapping */
- xf_get_x11_button_map (xfc, x11_map);
+ if (!xfc->settings->UnmapButtons)
+ {
+ xf_get_x11_button_map (xfc, x11_map);
+ }
/* iterate over all (mapped) physical buttons; for each of them */
/* find the logical button in X11, and assign to this the */
{ "usb", COMMAND_LINE_VALUE_REQUIRED, "[dbg][dev][id|addr][auto]", NULL, NULL, -1, NULL, "Redirect USB device" },
{ "multitouch", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Redirect multitouch input" },
{ "gestures", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Consume multitouch input locally" },
+ { "unmap-buttons", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Let server see real physical pointer button"},
{ "echo", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, "echo", "Echo channel" },
{ "disp", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL, "Display control" },
{ "fonts", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Smooth fonts (ClearType)" },
{
settings->GrabKeyboard = arg->Value ? TRUE : FALSE;
}
+ CommandLineSwitchCase(arg, "unmap-buttons")
+ {
+ settings->UnmapButtons = arg->Value ? TRUE : FALSE;
+ }
CommandLineSwitchCase(arg, "toggle-fullscreen")
{
settings->ToggleFullscreen = arg->Value ? TRUE : FALSE;