2
0
mirror of https://github.com/debauchee/barrier synced 2025-08-30 22:05:43 +00:00

Merge pull request #1067 from cryzed/fix/server-preserve-focus

Fix `Fix Preserve Focus` option not working on Linux servers
This commit is contained in:
walker0643
2022-02-04 11:47:29 -05:00
committed by GitHub

View File

@@ -324,7 +324,7 @@ XWindowsScreen::leave()
m_impl->XGetInputFocus(m_display, &m_lastFocus, &m_lastFocusRevert);
// take focus
if (m_isPrimary || !m_preserveFocus) {
if (!m_preserveFocus) {
m_impl->XSetInputFocus(m_display, m_window, RevertToPointerRoot, CurrentTime);
}