zed icon indicating copy to clipboard operation
zed copied to clipboard

Native Full Screen Causes 4k HDR Display to Stop Working

Open Kenny-MWI opened this issue 11 months ago • 2 comments

Check for existing issues

  • [X] Completed

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:

  • I have a Samsung LU28R55 4k HDR monitor connected to my 2020 Macbook Pro via USB-C to DisplayPort cable but I suspect any HDR monitor would work for this.
  • Open the Mac System Settings > Displays and ensure the option for "High Dynamic Range" is enabled.
  • Open Zed and go into full screen using the green full screen button on the window or View > Enter Full Screen
  • The screen goes black and nothing works on it until the screen has been disconnected and application closed or taken out of full screen mode.

Workaround:

  • Open the Mac System Settings > Displays and ensure the option for "High Dynamic Range" is disabled.
  • Native full screen works as expected.

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

Kenny-MWI avatar Mar 01 '24 21:03 Kenny-MWI

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

Tom-Boscher avatar Mar 02 '24 00:03 Tom-Boscher

@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.

Kenny-MWI avatar Mar 04 '24 15:03 Kenny-MWI

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

Tom-Boscher avatar Mar 08 '24 00:03 Tom-Boscher