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:
commit
653e4badeb
|
@ -324,7 +324,7 @@ XWindowsScreen::leave()
|
||||||
m_impl->XGetInputFocus(m_display, &m_lastFocus, &m_lastFocusRevert);
|
m_impl->XGetInputFocus(m_display, &m_lastFocus, &m_lastFocusRevert);
|
||||||
|
|
||||||
// take focus
|
// take focus
|
||||||
if (m_isPrimary || !m_preserveFocus) {
|
if (!m_preserveFocus) {
|
||||||
m_impl->XSetInputFocus(m_display, m_window, RevertToPointerRoot, CurrentTime);
|
m_impl->XSetInputFocus(m_display, m_window, RevertToPointerRoot, CurrentTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue