From 2fca9406d78b08f5c6ddaba9f9f57ee1c78ab52e Mon Sep 17 00:00:00 2001 From: taro <34352544+tarolling@users.noreply.github.com> Date: Tue, 25 Aug 2026 07:15:18 -0500 Subject: [PATCH] Hide drop shadow window decoration when in fullscreen mode (#8449) * Closes * [x] I have followed the instructions in the PR template --- crates/egui-winit/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index 70d1fda78..5ca800108 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -1867,7 +1867,9 @@ fn process_viewport_command( #[cfg(target_os = "windows")] { use winit::platform::windows::WindowExtWindows as _; - window.set_undecorated_shadow(!v); + + // don't request the undecorated-window drop shadow in fullscreen (#8399) + window.set_undecorated_shadow(!v && window.fullscreen().is_none()); } } ViewportCommand::WindowLevel(l) => window.set_window_level(match l { @@ -2189,7 +2191,10 @@ pub fn create_winit_window_attributes( if let Some(show) = _taskbar { window_attributes = window_attributes.with_skip_taskbar(!show); } - window_attributes = window_attributes.with_undecorated_shadow(!decorations.unwrap_or(true)); + + // don't request the undecorated-window drop shadow in fullscreen (#8399) + let want_undecorated_shadow = !decorations.unwrap_or(true) && !fullscreen.unwrap_or(false); + window_attributes = window_attributes.with_undecorated_shadow(want_undecorated_shadow); } #[cfg(target_os = "macos")]