raboof / notion

Tiling tabbed window manager
https://notionwm.net/
GNU Lesser General Public License v2.1
272 stars 65 forks source link

Strange behavior with Ghidra #359

Closed edmcman closed 1 year ago

edmcman commented 1 year ago

I've been having a weird problem with Ghidra in notion for a while now. The problem occurs when two Ghidra windows want to display in the same screen. The way that Ghidra works is that if the main "CodeBrowser" window does not have focus, the other windows are not displayed. I think this is what is happening:

  1. I click on CodeBrowser to bring the CodeBrowser into focus
  2. Ghidra displays the windows that were hidden
  3. One of these windows takes the focus
  4. Ghidra hides the window because the CodeBrowser is not in focus
  5. The CodeBrowser now becomes in focus again
  6. Go to step 2

Is there any way to avoid this? I'm going to try playing with some kludges (Acrobatic)...

Recording 2023-04-04 at 10 03 39

edmcman commented 1 year ago

Putting this in cfg_kludges.lua seems to solve the problem:

defwinprop {
   class = "ghidra-Ghidra",
   acrobatic = true,
}
raboof commented 1 year ago

Cool! Happy to include this in the standard set of kludges if you PR?

edmcman commented 1 year ago

Will do!