Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Don't move traffic lights while fullscreen

Greg Morenz48a4cbad3776
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs
index 9497c240c33..da42f919a50 100644
--- a/crates/gpui/src/platform/mac/window.rs
+++ b/crates/gpui/src/platform/mac/window.rs
@@ -348,6 +348,12 @@ struct MacWindowState {
impl MacWindowState {
fn move_traffic_light(&self) {
if let Some(traffic_light_position) = self.traffic_light_position {
+ if self.is_fullscreen() {
+ // Moving traffic lights while fullscreen doesn't work,
+ // see https://github.com/zed-industries/zed/issues/4712
+ return;
+ }
+
let titlebar_height = self.titlebar_height();
unsafe {