[BUG]: JetBrains IDE contents get offset until hovered over when running Komorebi #349

Closed
opened 2026-01-05 14:49:56 +01:00 by adam · 7 comments
Owner

Originally created by @Insprill on GitHub (Apr 23, 2024).

Describe the bug
When a JetBrains IDE is tiled with Komorebi, the contents will randomly get offset a few pixels to the left, making editing difficult as code doesn't line up, and characters will sometimes get visually duplicated until the UI updates.
This issue is present in 2023 and 2024 edition IDEs and has been reproducible with IntelliJ and Rider.

To Reproduce
Steps to reproduce the behavior:

  1. Open one of JetBrains' IDEs (IntelliJ, for example).
  2. Open a project or folder.
  3. Move your cursor around the UI and focus/unfocus the IDE.
  4. See bug

Expected behavior
IDE contents should be rendered correctly.

Screenshots and Videos

https://github.com/LGUG2Z/komorebi/assets/52843537/81b57552-d417-4238-a0b8-831c0262b6b3

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

Additional Context
Possibly related to #781.

Originally created by @Insprill on GitHub (Apr 23, 2024). **Describe the bug** When a JetBrains IDE is tiled with Komorebi, the contents will randomly get offset a few pixels to the left, making editing difficult as code doesn't line up, and characters will sometimes get visually duplicated until the UI updates. This issue is present in 2023 and 2024 edition IDEs and has been reproducible with IntelliJ and Rider. **To Reproduce** Steps to reproduce the behavior: 1. Open one of JetBrains' IDEs (IntelliJ, for example). 2. Open a project or folder. 3. Move your cursor around the UI and focus/unfocus the IDE. 4. See bug **Expected behavior** IDE contents should be rendered correctly. **Screenshots and Videos** https://github.com/LGUG2Z/komorebi/assets/52843537/81b57552-d417-4238-a0b8-831c0262b6b3 **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 ``` **Additional Context** Possibly related to #781.
adam added the bug label 2026-01-05 14:49:56 +01:00
adam closed this issue 2026-01-05 14:49:56 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Apr 23, 2024):

I've been dealing with this for as long as I can remember with JetBrains IDEs and komorebi, I'm not 100% sure what triggers it, but lately I've noticed that this almost always starts happening whenever the border hwnd breaks. My own personal workaround for this is unfortunately just komorebic stop; komorebic start 😞

@LGUG2Z commented on GitHub (Apr 23, 2024): I've been dealing with this for as long as I can remember with JetBrains IDEs and komorebi, I'm not 100% sure what triggers it, but lately I've noticed that this almost always starts happening whenever the border hwnd breaks. My own personal workaround for this is unfortunately just `komorebic stop; komorebic start` 😞
Author
Owner

@allora commented on GitHub (Apr 24, 2024):

I use multiple displays are different orientations/sizes and its pretty much guaranteed that jetbrains IDEs (notably rider in my case) consistently just get drawn offset and then fix themselves as you use them. This specifically even happens if i dont change workspaces on a monitor, and just navigate between monitors using hot keys.

I have also seen it where my border just eventually vanishes .. turning white first before it does.

Sometimes it comes back tho.

Regardless of border drawing though, rider is always offset if i navigate away from it and back.

@allora commented on GitHub (Apr 24, 2024): I use multiple displays are different orientations/sizes and its pretty much guaranteed that jetbrains IDEs (notably rider in my case) consistently just get drawn offset and then fix themselves as you use them. This specifically even happens if i dont change workspaces on a monitor, and just navigate between monitors using hot keys. I have also seen it where my border just eventually vanishes .. turning white first before it does. Sometimes it comes back tho. Regardless of border drawing though, rider is always offset if i navigate away from it and back.
Author
Owner

@mystery4f commented on GitHub (Apr 24, 2024):

Hello, can you tell me how to make komorebi recognize Intellij? My computer cannot recognize it.
@Insprill @LGUG2Z @allora

@mystery4f commented on GitHub (Apr 24, 2024): Hello, can you tell me how to make komorebi recognize Intellij? My computer cannot recognize it. @Insprill @LGUG2Z @allora
Author
Owner

@LGUG2Z commented on GitHub (May 13, 2024):

This may possibly improve the content offsets as well: 54c58be858

@LGUG2Z commented on GitHub (May 13, 2024): This may possibly improve the content offsets as well: https://github.com/LGUG2Z/komorebi/commit/54c58be858ebe62acb329bd96ea2d60950dfb46f
Author
Owner

@Insprill commented on GitHub (May 14, 2024):

I had to wait for the border to break to test this, and it just did. All contents are staying in place! I also tested it with a different runtime, and the contents are no longer getting vertically offset, either.
Edit: I spoke too soon. It's better now, but it still happens sometimes. I think it's related to switching workspaces, but I haven't narrowed it down yet.

@Insprill commented on GitHub (May 14, 2024): I had to wait for the border to break to test this, and it just did. ~~All contents are staying in place! I also tested it with a different runtime, and the contents are no longer getting vertically offset, either.~~ Edit: I spoke too soon. It's better now, but it still happens sometimes. I think it's related to switching workspaces, but I haven't narrowed it down yet.
Author
Owner

@Insprill commented on GitHub (May 15, 2024):

After testing this more, switching workspaces is the only time I've seen it happen.

@Insprill commented on GitHub (May 15, 2024): After testing this more, switching workspaces is the only time I've seen it happen.
Author
Owner

@Insprill commented on GitHub (Jun 19, 2024):

With the recent fixes, I haven't had the border break even once over the last couple of days. Since that was the only time this happened, I'd say this could be closed ❤️

@Insprill commented on GitHub (Jun 19, 2024): With the recent fixes, I haven't had the border break even once over the last couple of days. Since that was the only time this happened, I'd say this could be closed ❤️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#349