zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.75k stars 2.07k forks source link

Opening Zed after the latest release opens a blank window alongside the editor window. #13018

Open luka-hash opened 3 weeks ago

luka-hash commented 3 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

$ pacman -Q zed
zed 0.139.3-1
$ mkdir demo && zeditor demo/

image


Alternatively, when started via launcher (wofi), the same thing occurs.

Expected behaviour: Zed opens only one window - the editor window.

Note: When hovering over the 'weird' window, cursor is not properly rendered, but instead there is a 'zoomed' cursor.

Environment

Zed: v1.0.0 (Zed) OS: Linux 1.0.0 Memory: 7.1 GiB Architecture: x86_64

$ pacman -Q hyprland
hyprland 0.41.0-1

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.

Zed.log

ConradIrwin commented 2 weeks ago

@luka-hash We made some changes to window placement in 0.141. please let us know if it's still happening for you.

luka-hash commented 1 week ago

Still there. It works (meaning there are no additional windows opened, just zed editor window) if I start it with the '--foreground' flag. Let me know if I can provide any additional info/help.

ConradIrwin commented 1 week ago

I suspect that we're interacting badly with your window manager. What window manager are you using, and are you using X11 or Wayland?

I think the black square in this case is the app as being managed by your window manager, and the app is our GPU context. In theory they should coincide, but due to the way linux works it's possible for timing to affect that.

That said, it's a bit surprising that using --foreground fixes it. The only change that should make is whether the main zed process is a child of your terminal or not (though I guess it could also affect timing subtly...)

luka-hash commented 1 week ago

$ pacman -Q hyprland
hyprland 0.41.0-1

I'm on Wayland, Hyprland 0.41.2-1 (latest).