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:
Open a 2024.1 edition instance of IntelliJ/Rider/Other JetBrains IDE.
Focus on/off of it, or between other applications never touching the IDE.
Observe it flickering when doing so.
It will also flicker whenever most popups are opened/closed during code editing.
OS Name: Microsoft Windows 11 Pro for Workstations
OS Version: 10.0.22631 N/A Build 22631
komorebic check Output
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Insprill
Looking for configuration files in C:\Users\Insprill
Found komorebi.json; this file can be passed to the start command with the --config flag
No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard
Aditional Context
I'm using Komorebi built from 740cb3c877
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:
1. Open a 2024.1 edition instance of IntelliJ/Rider/Other JetBrains IDE.
2. Focus on/off of it, or between other applications never touching the IDE.
3. Observe it flickering when doing so.
4. It will also flicker whenever most popups are opened/closed during code editing.
**Expected behavior**
It should not flicker
**Screenshots and Videos**
https://github.com/LGUG2Z/komorebi/assets/52843537/f51164b6-87cd-46fa-b750-92614097397b
**Operating System**
```
OS Name: Microsoft Windows 11 Pro for Workstations
OS Version: 10.0.22631 N/A Build 22631
```
**`komorebic check` Output**
```
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Insprill
Looking for configuration files in C:\Users\Insprill
Found komorebi.json; this file can be passed to the start command with the --config flag
No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard
```
**Aditional Context**
I'm using Komorebi built from 740cb3c877965340fcbe00416b7a10ffc32ab354
adam
added the bug label 2026-01-05 14:49:54 +01:00
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.
@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.
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.
@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.
@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
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:
Help -> Find Action... -> Choose Boot Java Runtime for the IDE...
In this window open drop-down Select Runtime and choose Add 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.
@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:
```
komorebi v0.1.25
PyCharm 2024.1.1 Community, Build #PC-241.15989.155
Windows 10 2H22, Build 19045.4291
```
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:
```
Help -> Find Action... -> Choose Boot Java Runtime for the IDE...
```
In this window open drop-down `Select Runtime` and choose `Add 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.
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!
@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!
@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
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 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):
https://github.com/LGUG2Z/komorebi/commit/54c58be858ebe62acb329bd96ea2d60950dfb46f this should also improve the situation
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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):
https://github.com/LGUG2Z/komorebi/commit/54c58be858ebe62acb329bd96ea2d60950dfb46f this 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!