From 3a82d48548af147b2cbf431f3ed03533e6f552ec Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Sat, 11 Jul 2026 12:35:07 +0200 Subject: [PATCH] fix: ignore resize border on fullscreen/maximized --- winit/src/application/drag_resize.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winit/src/application/drag_resize.rs b/winit/src/application/drag_resize.rs index 6d575b52..29fa10da 100644 --- a/winit/src/application/drag_resize.rs +++ b/winit/src/application/drag_resize.rs @@ -49,7 +49,10 @@ pub fn event_func( position, .. } => { - if !window.is_decorated() { + let resizable = !window.is_decorated() + && !window.is_maximized() + && window.fullscreen().is_none(); + if resizable { let location = cursor_resize_direction( window.surface_size(), *position,