This commit is contained in:
Jake Barnes 2022-11-06 07:06:07 +00:00 committed by GitHub
commit 7fab3b382e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1941,15 +1941,15 @@ XWindowsScreen::updateButtons()
}
// allocate button array
m_buttons.resize(maxButton);
m_buttons.resize(maxButton + 1);
// fill in button array values. m_buttons[i] is the physical
// button number for logical button i+1.
for (UInt32 i = 0; i < numButtons; ++i) {
// button number for logical button i.
for (UInt32 i = 0; i < maxButton + 1; ++i) {
m_buttons[i] = 0;
}
for (UInt32 i = 0; i < numButtons; ++i) {
m_buttons[tmpButtons[i] - 1] = i + 1;
m_buttons[tmpButtons[i]] = i;
}
// clean up

View File

@ -228,7 +228,7 @@ private:
bool m_screensaverNotify;
// logical to physical button mapping. m_buttons[i] gives the
// physical button for logical button i+1.
// physical button for logical button i.
std::vector<unsigned char> m_buttons;
// true if global auto-repeat was enabled before we turned it off