Forgot to restore global auto-repeat configuration on exit.

This commit is contained in:
crs 2003-05-03 13:57:52 +00:00
parent 3fc40e1939
commit 65de05e3ec
2 changed files with 10 additions and 0 deletions

View File

@ -378,6 +378,15 @@ CXWindowsSecondaryScreen::onPostOpen()
XGetKeyboardControl(display, &m_keyControl); XGetKeyboardControl(display, &m_keyControl);
} }
void
CXWindowsSecondaryScreen::onPreClose()
{
if (m_keyControl.global_auto_repeat == AutoRepeatModeOn) {
CDisplayLock display(m_screen);
XAutoRepeatOn(display);
}
}
void void
CXWindowsSecondaryScreen::onPreEnter() CXWindowsSecondaryScreen::onPreEnter()
{ {

View File

@ -61,6 +61,7 @@ protected:
virtual void onPreMainLoop(); virtual void onPreMainLoop();
virtual void onPreOpen(); virtual void onPreOpen();
virtual void onPostOpen(); virtual void onPostOpen();
virtual void onPreClose();
virtual void onPreEnter(); virtual void onPreEnter();
virtual void onPostEnter(); virtual void onPostEnter();
virtual void onPreLeave(); virtual void onPreLeave();