mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Komorebi causes flickering in 2024 JetBrains IDEs #347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Insprill on GitHub (Apr 22, 2024).
Describe the bug
When Komorebi is running, it causes the 2024 edition JetBrains IDEs (reproducible with IntelliJ and Rider) to flicker whenever a window event happens, including to other windows.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should not flicker
Screenshots and Videos
https://github.com/LGUG2Z/komorebi/assets/52843537/f51164b6-87cd-46fa-b750-92614097397b
Operating System
komorebic checkOutputAditional Context
I'm using Komorebi built from
740cb3c877@LGUG2Z commented on GitHub (Apr 22, 2024):
This is either Windows compositor bug or a JetBrains rendering bug; if you open tickets with either MS or JetBrains please link them here for tracking.
@Insprill commented on GitHub (Apr 22, 2024):
I don't know enough about the inner workings of these systems to make a proper report to either, so I'll leave that to someone else. Two other things to note are that 2023 and older IDEs are fine, and the flickering isn't as bad in person as they are in the recording (recorded with AMD Adrenalin), but it's still very much present and quite distracting.
@mmikeww commented on GitHub (Apr 23, 2024):
do you get the flicker if you turn off the active window border?
@Insprill commented on GitHub (Apr 23, 2024):
I do, yes.
@azinsharaf commented on GitHub (Apr 23, 2024):
i used to use pycharm and i remember it had flickering issue in some situations (without komorebi). Maybe it is worth it to ask in their community forum too.
https://intellij-support.jetbrains.com/hc/en-us/community/topics
@thomasroodnl commented on GitHub (May 6, 2024):
Hi @Insprill, I am sorry to hear that you are dealing with this issue too. My main issue was heavy flickering whenever I opened a context menu or used Ctrl + Tab to switch files.
I have been trying a lot of workarounds from other posts on Jetbrains flickering and none of them really worked. However, I found something that for me seems to solve the flickering, hopefully it works for you too. For your info, I am running the following setup:
My solution involved switching to a different Java JDK to run PyCharm. By default, it was running on a bundled version (17). I installed the latest Java JDK from the official website (version 22.0.1) and selected it as follows:
In this window open drop-down
Select Runtimeand chooseAdd custom runtime. Then choose the path to the installed runtime and restart the IDE when prompted.Hopefully this process works similarly in other JetBrains IDEs. Note that it is not a perfect fix, at least for me the 'active window border' still flickers whenever I open a context menu or switch files, but at least the main window stays stable (which makes it much less distracting).
Please let me know if this works for you.
@Insprill commented on GitHub (May 7, 2024):
Yup, this indeed worked for me! It appears to be an issue with their runtime. I tested with Adoptium and Graal 17 and 22, and it isn't present in either, but it's present in all versions of their runtime listed in the IDE (17 and 21). I created an issue on their runtime repo for it - hopefully, something will come of it. Thank you for the workaround in the meantime!
@LGUG2Z commented on GitHub (May 7, 2024):
Can you link the JetBrains ticket here as well please? 🙏
@Insprill commented on GitHub (May 7, 2024):
GitHub shows it in the history just above my comment, but here it is as well:
https://github.com/JetBrains/JetBrainsRuntime/issues/379
@LGUG2Z commented on GitHub (May 7, 2024):
Ah thanks! I was looking on my phone and all the old comments were folded away 😅
@Insprill commented on GitHub (May 7, 2024):
Good to know this also causes the entire editor to get visually offset vertically by the size of the title bar when the border breaks 😅
@Insprill commented on GitHub (May 8, 2024):
I re-created the issue on YouTrack - I'm not sure why they have GitHub issues enabled as it looks like they don't check them.
https://youtrack.jetbrains.com/issue/JBR-7123/Flicker-when-changing-focused-window-with-Komorebi
@LGUG2Z commented on GitHub (May 13, 2024):
54c58be858this should also improve the situation@Insprill commented on GitHub (May 14, 2024):
I tested this all day (since it was committed), and I haven't noticed any flickering!
@LGUG2Z commented on GitHub (May 14, 2024):
Tentatively going to close this as the flickering is gone even without the use of a custom runtime 🤞
@thomasroodnl commented on GitHub (May 14, 2024):
Tested it too, works perfectly now with the default runtime. Thank you so much!