Add Window::set_blur
Allow clients to request blur behind their window, implemented on Wayland for now.
This commit is contained in:
parent
f5dd1c008c
commit
0363be4776
17 changed files with 167 additions and 2 deletions
|
|
@ -131,6 +131,8 @@ impl Window {
|
|||
// Set transparency hint.
|
||||
window_state.set_transparent(attributes.transparent);
|
||||
|
||||
window_state.set_blur(attributes.blur);
|
||||
|
||||
// Set the decorations hint.
|
||||
window_state.set_decorate(attributes.decorations);
|
||||
|
||||
|
|
@ -409,6 +411,11 @@ impl Window {
|
|||
self.window_state.lock().unwrap().scale_factor()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_blur(&self, blur: bool) {
|
||||
self.window_state.lock().unwrap().set_blur(blur);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_decorations(&self, decorate: bool) {
|
||||
self.window_state.lock().unwrap().set_decorate(decorate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue