feat: add Window::is_decorated (#2172)
* feat: add `Window::is_decorated` * move it right after `set_decorations`
This commit is contained in:
parent
cd9ec0afc7
commit
fa14863284
10 changed files with 51 additions and 0 deletions
|
|
@ -1003,6 +1003,11 @@ impl UnownedWindow {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_decorated(&self) -> bool {
|
||||
self.decorations.load(Ordering::Acquire)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_always_on_top(&self, always_on_top: bool) {
|
||||
let level = if always_on_top {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue