fix: window corner handling

This commit is contained in:
Vukašin Vojinović 2025-10-03 18:19:19 +02:00 • committed by Ashley Wulber
parent 5cd7742413
commit ad1672b881
5 changed files with 36 additions and 32 deletions

View file

@ -542,7 +542,7 @@ where
}
#[cfg(feature = "multi-window")]
pub fn view(&self, id: window::Id) -> Element<crate::Action<T::Message>> {
pub fn view(&self, id: window::Id) -> Element<'_, crate::Action<T::Message>> {
#[cfg(feature = "wayland")]
if let Some((_, _, v)) = self.surface_views.get(&id) {
return v(&self.app);
@ -641,6 +641,8 @@ impl<T: Application> Cosmic<T> {
| WindowState::TILED_TOP
| WindowState::TILED_BOTTOM,
);
self.app.core_mut().window.is_maximized =
state.intersects(WindowState::MAXIMIZED | WindowState::FULLSCREEN);
}
if self.app.core().sync_window_border_radii_to_theme() {
use iced_runtime::platform_specific::wayland::CornerRadius;