mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-27 08:40:41 +08:00
Removed periodic call to XForceScreenSaver() to prevent the built-in
screen saver from activating. It was unnecessary since the built-in screen saver is disabled as appropriate; this call was just to ensure that the screen saver wouldn't start if an external program reactivated the screen saver after synergy disabled it. It's possible that this was causing screen flicker under gnome, though i don't know why. It's also possible that periodically sending events to xscreensaver is causing the flicker but removing that code is more difficult because xscreensaver can't be disabled, only deactivated or killed.
This commit is contained in:
@@ -479,7 +479,4 @@ CXWindowsScreenSaver::disableCallback(void*)
|
||||
CXWindowsUtil::CErrorLock lock(m_display);
|
||||
XSendEvent(m_display, m_xscreensaver, False, 0, &event);
|
||||
}
|
||||
|
||||
// force screen saver off and reset the timer
|
||||
XForceScreenSaver(m_display, ScreenSaverReset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user