The problem I am about to describe occurs when I have multiple projects open and I commit a set of changes to Git. I'm not sure this is the only time it happens, I haven't been paying super close attention, but I'm sure it happens some of the time in this situation.
In this situation, I have multiple projects open, both maximized, and one window is behind the other. The commit dialog is open and I confirm my commit. The commit dialog disappears, but at the same time the currently focused project window also completely disappears and the other project is now on top. This has caused a lot of frustration, because it is not always immediately obvious that the other project is now in focus. For example, I run the currently active run configuration and only realize it is the other project after it starts running.
From what I can tell the originally in focus project has simply become invisible. It still shows up in the task bar and if I click on the application icon in the task bar I can see a faint outline minimizing to the task bar. If I click on the application icon in the task bar again it maximizes and is visible and in focus again.
I'm running PyCharm 2020.2 on Linux (KDE Plasma). I've been using PyCharm for several years and this is a relatively recent problem. It could be a problem with KDE, but this is the only application where this type of problem occurs, so my guess is it has something to do with PyCharm as well.
Thanks for any help.