zed icon indicating copy to clipboard operation
zed copied to clipboard

Window Content Misaligned From Decorations on X11 Linux

Open someone13574 opened this issue 1 year ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When on X11 Linux, the window contents will occasionally not be aligned with the window decorations. More specifically, the contents will be shifted up and to the left by some amount. Without changing anything between starts, this will occur seemingly randomly. There was at least one other user on the discord encountering this problem as well (they said it occurred at ~5-10% of the time, but can also reproduce using the method below).

Video of repeatedly restarting Zed until it occurs, with no changes between runs (though interestingly the window appears lower on the iteration before the bug): randomly.webm

However, there seems to be a way to force trigger it, at least on my system (edit: and another user in the discord who is on gnome). This can be done by opening Zed, resizing the window, closing Zed, and opening it again. This will cause it to open in the misaligned state every time. force-trigger.webm

Lastly, this state cannot be exited by normal resizing or dragging of the window, but snapping it to an edge using the mouse or keyboard will cause it to be re-aligned. Bringing it out of a snap will keep it properly aligned. snap-reset.webm

Environment

Zed: v1.0.0 (Zed) (actually 0.132.4, not sure why this doesn't report correctly) OS: Linux 1.0.0 Memory: 31.3 GiB Architecture: x86_64

Extra Info: Linux: Void Linux (kernel: 6.6.29) NVIDIA GTX 1660 Super Gnome X11 45.5 (Mutter 45.5)

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

someone13574 avatar May 01 '24 01:05 someone13574