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
46.93k stars 2.7k forks source link

Native Full Screen Causes 4k HDR Display to Stop Working #8687

Open Kenny-MWI opened 6 months ago

Kenny-MWI commented 6 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Description

When I click the green button in the top left of the Zed window to make the application full screen on my HDR monitor, the display turns black and I can't do anything on it. My mouse cursor is not visible and I'm unable to use Cmd+Tab or gestures to switch to other windows that were open on that display and I cannot use Cmd+Q to close the application. I can move my cursor to the left and right to my non-HDR displays so I know the machine is not frozen. I have to disconnect that monitor from my laptop to to close the application before plugging it back in.

Steps to reproduce:

Workaround:

Environment

Zed: v0.124.8 (Zed)
OS: macOS 14.0.0
Memory: 32 GiB
Architecture: x86_64

If it matters, this Macbook is using Intel Iris Plus Graphics, 1536 MB and has a 2.3 GHz Quad-Core i7 CPU.

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

Here's the system setting I had to change for this display:

Screenshot 2024-03-01 at 2 55 27 PM

I don't have to disable this for any other application to run full screen which leads me to believe this is a bug with Zed rather than MacOS. Toggling this system setting off every time I want to use Zed is tedious and not a long term solution.

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

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

Nothing gets written to the log when this bug occurs

Tom-Boscher commented 6 months ago

I have a 4K HDR external monitor too (with HDR enabled) and I never has this issue. Maybe it's specific to your model.

Kenny-MWI commented 6 months ago

@Tom-Boscher Which model of Mac do you have? Does it have an Intel CPU or M1/M2? Which version of MacOS are you on?

For a few minutes, I thought maybe setting the refresh rate to 30 Hertz was the solution because it seemed to be working but then the screen went blank again as I was typing.

I haven't seen this behavior with any other app on this monitor. I've tested Firefox, Visual Studio Code, Slack, Finder (and other system apps), Sublime Text, Obsidian, ppgAdmin 4, and several others but Zed is the only one with problems here.

Tom-Boscher commented 6 months ago

@Kenny-MWI I have a MacBook Pro M1 Pro, running Sonoma 14.3.1