(Maybe) fixed a problem detecting when win32 screen saver started.

This commit is contained in:
crs
2004-06-12 20:48:04 +00:00
parent a80ddb4a78
commit ccb45bc2bc
4 changed files with 25 additions and 3 deletions

View File

@@ -115,6 +115,8 @@ CMSWindowsDesks::~CMSWindowsDesks()
void
CMSWindowsDesks::enable()
{
m_threadID = GetCurrentThreadId();
// set the active desk and (re)install the hooks
checkDesk();
@@ -844,6 +846,10 @@ CMSWindowsDesks::checkDesk()
sendMessage(SYNERGY_MSG_LEAVE, (WPARAM)m_keyLayout, 0);
}
}
else if (name != m_activeDeskName) {
// screen saver might have started
PostThreadMessage(m_threadID, SYNERGY_MSG_SCREEN_SAVER, TRUE, 0);
}
}
bool