Skip to content

Eclipse loses focus after switching perspectives #2839

@trancexpress

Description

@trancexpress

Reproduction steps:

  1. Start Eclipse in a new workspace.
  2. Set hotkeys for showing Java and Debug perspectives (Shift+Ctrl+Alt+J resp. Shift+Ctrl+Alt+D in my case). Clicking on the perspective buttons also works.
  3. Open Debug perspective.
  4. Switch to Java perspective.
  5. Open Console view, open Java Stack Trace page.
  6. Click on the text on the page, select some text with the keyboard (Shift+Left/Right Arrow).
  7. Switch to Debug perspective, switch back to Java perspective, observe that focus is still on the text and keyboard can be used to select text.
  8. Switch to Debug perspective, open some file in an editor, select text with keyboard.
  9. Switch to Java perspective, there is no focus anymore, hotkeys to switch perspectives don't work.

Its the same if I focus the stack traces page of the Console view in the Debug perspective, the reproduction doesn't need an editor.

But If I click on some view tab in the Debug perspective, I don't see the bug. So it doesn't seem like a generic problem with focus not being preserved properly, focus is lost in some cases.

See recording:

eclipse_perspective_switch_focus_lost.webm

I see this on Linux (RHEL 9.2, gtk3-3.24.31-2.el9.x86_64) with:

Eclipse SDK
Version: 2025-06 (4.36)
Build id: I20250316-1800

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions