[GH-ISSUE #661] Java applications stop responding to keyboard input after losing and regaining window focus #521

Open
opened 2026-05-05 06:35:29 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @Feanux3 on GitHub (May 8, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/661

Operating Systems

Server: Windows 10 Pro 1909

Client: macOS Catalina 10.15.4

Barrier Version

2.3.2-shapshot-210c2b70

Steps to reproduce bug

Issue is most prevalent in SQLDeveloper on macOS. When the window focus is regained after losing focus (selecting any other open window/program) the program no longer recognizes keyboard input from the server. Minimizing the window and bringing it back up restores full functionality.

Other info

  • Issue persists across multiple Macs and operating systems
  • Mouse clicks will only highlight text, no longer changes the cursor to insert (if editing text)
  • Only appears to be an issue with Java based programs
  • Always reproducible
  • Issue happened with Synergy
Originally created by @Feanux3 on GitHub (May 8, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/661 ### Operating Systems ### Server: Windows 10 Pro 1909 Client: macOS Catalina 10.15.4 ### Barrier Version ### 2.3.2-shapshot-210c2b70 ### Steps to reproduce bug ### Issue is most prevalent in SQLDeveloper on macOS. When the window focus is regained after losing focus (selecting any other open window/program) the program no longer recognizes keyboard input from the server. Minimizing the window and bringing it back up restores full functionality. ### Other info ### - Issue persists across multiple Macs and operating systems - Mouse clicks will only highlight text, no longer changes the cursor to insert (if editing text) - Only appears to be an issue with Java based programs - Always reproducible - Issue happened with Synergy
Author
Owner

@tehbiga commented on GitHub (May 8, 2020):

I've noticed this with IntelliJ (on macOS Mojave client).

When switching operating systems the text editor buffer doesn't properly regain focus (already an existing bug for other reasons in IntelliJ), but it happens consistently when using barrier.
I have to switch tabs back and forth to force IntelliJ to pick an editor buffer to focus on for me.

If anything, this would probably be an easier testing app since it has multiple text entries that pull focus. I bet this has something to do with how the mouse events are being emulated.

<!-- gh-comment-id:625926916 --> @tehbiga commented on GitHub (May 8, 2020): I've noticed this with IntelliJ _(on macOS Mojave client)_. When switching operating systems the text editor buffer doesn't properly regain focus _(already an existing bug for other reasons in IntelliJ),_ but it happens consistently when using barrier. I have to switch tabs back and forth to force IntelliJ to pick an editor buffer to focus on for me. If anything, this would probably be an easier testing app since it has multiple text entries that pull focus. I bet this has something to do with how the mouse events are being emulated.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 23, 2020):

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:697070197 --> @github-actions[bot] commented on GitHub (Sep 23, 2020): This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@Feanux3 commented on GitHub (Sep 23, 2020):

Still an issue - responding to keep it active.

<!-- gh-comment-id:697070484 --> @Feanux3 commented on GitHub (Sep 23, 2020): Still an issue - responding to keep it active.
Author
Owner

@p12tic commented on GitHub (Jan 10, 2021):

Reopening erroneously closed bug report.

<!-- gh-comment-id:757539130 --> @p12tic commented on GitHub (Jan 10, 2021): Reopening erroneously closed bug report.
Author
Owner

@Feanux3 commented on GitHub (May 25, 2021):

Issue persists on latest MacOS updates.

<!-- gh-comment-id:847921557 --> @Feanux3 commented on GitHub (May 25, 2021): Issue persists on latest MacOS updates.
Author
Owner

@imiller31 commented on GitHub (Sep 21, 2022):

still an issue

<!-- gh-comment-id:1254015895 --> @imiller31 commented on GitHub (Sep 21, 2022): still an issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#521
No description provided.