Forgot to restore global auto-repeat configuration on exit.
This commit is contained in:
parent
3fc40e1939
commit
65de05e3ec
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue