mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
Fixed button mapping. Was returning the physical button instead of
the logical button, but XTest wants the logical button. Apparently, the XTest implementation on my mac laptop has it backwards.
This commit is contained in:
@@ -1740,7 +1740,7 @@ CXWindowsScreen::mapButtonToX(ButtonID id) const
|
||||
}
|
||||
|
||||
// map button
|
||||
return static_cast<unsigned int>(m_buttons[id - 1]);
|
||||
return static_cast<unsigned int>(id);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user