Skip to content

Commit 653e4ba

Browse files
authored
Merge pull request #1067 from cryzed/fix/server-preserve-focus
Fix `Fix Preserve Focus` option not working on Linux servers
2 parents 7324f26 + 06c1a59 commit 653e4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/platform/XWindowsScreen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ XWindowsScreen::leave()
324324
m_impl->XGetInputFocus(m_display, &m_lastFocus, &m_lastFocusRevert);
325325

326326
// take focus
327-
if (m_isPrimary || !m_preserveFocus) {
327+
if (!m_preserveFocus) {
328328
m_impl->XSetInputFocus(m_display, m_window, RevertToPointerRoot, CurrentTime);
329329
}
330330

0 commit comments

Comments
 (0)