mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 13:15:33 +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()
|
||||
{
|
||||
|
||||
@@ -61,6 +61,7 @@ protected:
|
||||
virtual void onPreMainLoop();
|
||||
virtual void onPreOpen();
|
||||
virtual void onPostOpen();
|
||||
virtual void onPreClose();
|
||||
virtual void onPreEnter();
|
||||
virtual void onPostEnter();
|
||||
virtual void onPreLeave();
|
||||
|
||||
Reference in New Issue
Block a user