mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 06:05:08 +08:00
(Maybe) fixed a problem detecting when win32 screen saver started.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user