digma-ai / digma-intellij-plugin

Digma JetBrains plugin
MIT License
31 stars 7 forks source link

"Jumping" focus between the JCEF intances #2475

Open kshmidt-digma opened 1 week ago

kshmidt-digma commented 1 week ago

STR with Digma Plugin: 1) Open the Main Digma panel 2) Open Observability Digma panel 3) Switch to another desktop application (IDE and the plugin panels will lose the focus) 4) Click anywhere in the Observability panels

https://github.com/user-attachments/assets/3d085b84-79aa-4004-b311-f8b9de2e50f0

Current behavior: Both JCEF panels try to steal focus

Expected behavior: Only the panel that has been clicked on should have the focus

It seems like this is the Intellij problem, as it also reproduces with the Intellij What's New page. STR: 1) Go to Help -> What's New in IntelliJ IDEA 2) Open it multiple times in different editors side by side 3) Switch to another desktop application (IDE and the editors will lose the focus) 4) Click on one of the editors

https://github.com/user-attachments/assets/590213bf-50c3-4fb2-9966-69d7d0ec4388

Current behavior: Both editors try to steal the focus

Expected behavior: Only the tab that has been clicked on should have the focus

IntelliJ IDEA 2024.2.1 (Community Edition)
Build #IC-242.21829.142, built on August 28, 2024
Runtime version: 21.0.3+13-b509.11 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 14.6.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 12
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  i18n.locale=
Non-Bundled Plugins:
  org.jetbrains.plugins.gitlab (242.21829.162)
  org.digma.intellij (2.0.383+242)
Kotlin: 242.21829.142-IJ
kshmidt-digma commented 1 week ago

Also reproduces on Linux and Windows

kshmidt-digma commented 1 week ago

Corresponding issue in Jetbrains Youtrack: https://youtrack.jetbrains.com/issue/IJPL-161147/Focus-is-endlessly-flickering-between-Webviews-in-split-view