mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 06:31:50 +08:00
Forgot to restore global auto-repeat configuration on exit.
This commit is contained in:
@@ -378,6 +378,15 @@ CXWindowsSecondaryScreen::onPostOpen()
|
||||
XGetKeyboardControl(display, &m_keyControl);
|
||||
}
|
||||
|
||||
void
|
||||
CXWindowsSecondaryScreen::onPreClose()
|
||||
{
|
||||
if (m_keyControl.global_auto_repeat == AutoRepeatModeOn) {
|
||||
CDisplayLock display(m_screen);
|
||||
XAutoRepeatOn(display);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CXWindowsSecondaryScreen::onPreEnter()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user