diff --git a/crates/gpui/src/platform/windows/window.rs b/crates/gpui/src/platform/windows/window.rs index 2801674a64..5d1c91b5e3 100644 --- a/crates/gpui/src/platform/windows/window.rs +++ b/crates/gpui/src/platform/windows/window.rs @@ -384,7 +384,8 @@ impl WindowsWindow { (WS_EX_TOOLWINDOW | WS_EX_LAYERED, WINDOW_STYLE(0x0)) } else { ( - WS_EX_APPWINDOW | WS_EX_LAYERED, + // WS_EX_APPWINDOW | WS_EX_LAYERED, + WS_EX_APPWINDOW, WS_THICKFRAME | WS_SYSMENU | WS_MAXIMIZEBOX | WS_MINIMIZEBOX, ) }; @@ -461,7 +462,7 @@ impl WindowsWindow { // window is going to be composited with per-pixel alpha, but the render // pipeline is responsible for effectively calling UpdateLayeredWindow // at the appropriate time. - unsafe { SetLayeredWindowAttributes(hwnd, COLORREF(0), 255, LWA_ALPHA)? }; + // unsafe { SetLayeredWindowAttributes(hwnd, COLORREF(0), 255, LWA_ALPHA)? }; Ok(Self(state_ptr)) } @@ -706,27 +707,27 @@ impl PlatformWindow for WindowsWindow { } fn set_background_appearance(&self, background_appearance: WindowBackgroundAppearance) { - let mut window_state = self.0.state.borrow_mut(); + // let mut window_state = self.0.state.borrow_mut(); // todo(zjk) // window_state // .renderer // .update_transparency(background_appearance != WindowBackgroundAppearance::Opaque); - match background_appearance { - WindowBackgroundAppearance::Opaque => { - // ACCENT_DISABLED - set_window_composition_attribute(window_state.hwnd, None, 0); - } - WindowBackgroundAppearance::Transparent => { - // Use ACCENT_ENABLE_TRANSPARENTGRADIENT for transparent background - set_window_composition_attribute(window_state.hwnd, None, 2); - } - WindowBackgroundAppearance::Blurred => { - // Enable acrylic blur - // ACCENT_ENABLE_ACRYLICBLURBEHIND - set_window_composition_attribute(window_state.hwnd, Some((0, 0, 0, 0)), 4); - } - } + // match background_appearance { + // WindowBackgroundAppearance::Opaque => { + // // ACCENT_DISABLED + // set_window_composition_attribute(window_state.hwnd, None, 0); + // } + // WindowBackgroundAppearance::Transparent => { + // // Use ACCENT_ENABLE_TRANSPARENTGRADIENT for transparent background + // set_window_composition_attribute(window_state.hwnd, None, 2); + // } + // WindowBackgroundAppearance::Blurred => { + // // Enable acrylic blur + // // ACCENT_ENABLE_ACRYLICBLURBEHIND + // set_window_composition_attribute(window_state.hwnd, Some((0, 0, 0, 0)), 4); + // } + // } } fn minimize(&self) {