fix: draw sharp corners when the window is tiled, maximized, or fullscreen
This commit is contained in:
parent
e0b34e5d28
commit
42f24b7ee2
1 changed files with 9 additions and 3 deletions
|
|
@ -231,9 +231,15 @@ impl<T: Application> Cosmic<T> {
|
||||||
#[cfg(feature = "wayland")]
|
#[cfg(feature = "wayland")]
|
||||||
Message::WindowState(id, state) => {
|
Message::WindowState(id, state) => {
|
||||||
if window::Id(0) == id {
|
if window::Id(0) == id {
|
||||||
self.app.core_mut().window.sharp_corners =
|
self.app.core_mut().window.sharp_corners = state.intersects(
|
||||||
matches!(state, WindowState::ACTIVATED)
|
WindowState::MAXIMIZED
|
||||||
|| state.contains(WindowState::TILED);
|
| WindowState::FULLSCREEN
|
||||||
|
| WindowState::TILED
|
||||||
|
| WindowState::TILED_RIGHT
|
||||||
|
| WindowState::TILED_LEFT
|
||||||
|
| WindowState::TILED_TOP
|
||||||
|
| WindowState::TILED_BOTTOM,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue