Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Insprill opened this issue Apr 23, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Insprill
Copy link

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

komorebi-jetbrains-offset-bug.mp4

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.

@Insprill Insprill added the bug Something isn't working label Apr 23, 2024
@Insprill Insprill changed the title [BUG]: JetBrains IDE contents getting offset when running Komorebi [BUG]: JetBrains IDE contents get offset until hovered over when running Komorebi Apr 23, 2024
@LGUG2Z
Copy link
Owner

LGUG2Z commented 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 😞

@allora
Copy link

allora commented 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.

@mystery4f
Copy link

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

@LGUG2Z
Copy link
Owner

LGUG2Z commented May 13, 2024

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

@Insprill
Copy link
Author

Insprill commented May 13, 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
Copy link
Author

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

@Insprill
Copy link
Author

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 ❤️

@LGUG2Z LGUG2Z closed this as completed Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants