Skip to content

Commit

Permalink
Merge pull request debauchee#1067 from cryzed/fix/server-preserve-focus
Browse files Browse the repository at this point in the history
Fix `Fix Preserve Focus` option not working on Linux servers
  • Loading branch information
walker0643 authored Feb 4, 2022
2 parents 7324f26 + 06c1a59 commit 653e4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/platform/XWindowsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 653e4ba

Please sign in to comment.