diff --git a/src/platform_impl/linux/event_loop.rs b/src/platform_impl/linux/event_loop.rs index ce69fb614f..5789fb20ab 100644 --- a/src/platform_impl/linux/event_loop.rs +++ b/src/platform_impl/linux/event_loop.rs @@ -47,7 +47,7 @@ use super::{ }; use taskbar::TaskbarIndicator; - + #[derive(Clone)] pub struct EventLoopWindowTarget { /// Gdk display @@ -294,7 +294,7 @@ impl EventLoop { } } WindowRequest::Maximized(maximized) => { - if maximized && window.is_resizable() { + if maximized { window.maximize(); } else { window.unmaximize(); diff --git a/src/platform_impl/linux/window.rs b/src/platform_impl/linux/window.rs index a131510df7..f1a5f94b84 100644 --- a/src/platform_impl/linux/window.rs +++ b/src/platform_impl/linux/window.rs @@ -109,9 +109,6 @@ impl Window { window.resize(width, height); if attributes.maximized && attributes.resizable { - if is_wayland { - window.set_resizable(true); - } window.maximize(); }