render: Make blur_strength configurable
This commit is contained in:
parent
1c5ef576f4
commit
de8b47839c
11 changed files with 119 additions and 27 deletions
|
|
@ -571,6 +571,7 @@ pub fn render_window_to_buffer(
|
|||
.collect();
|
||||
|
||||
let shell = common.shell.read();
|
||||
let blur_strength = 9; // TODO
|
||||
let seat = shell.seats.last_active().clone();
|
||||
let pointer = seat.get_pointer().unwrap();
|
||||
let pointer_loc = pointer.current_location().to_i32_round().as_global();
|
||||
|
|
@ -598,6 +599,7 @@ pub fn render_window_to_buffer(
|
|||
1.0.into(),
|
||||
1.0,
|
||||
common.clock.now(),
|
||||
blur_strength,
|
||||
true,
|
||||
&mut |elem, hotspot| {
|
||||
elements.push(WindowCaptureElement::CursorElement(
|
||||
|
|
@ -619,15 +621,18 @@ pub fn render_window_to_buffer(
|
|||
&dnd_icon.surface,
|
||||
(location + dnd_icon.offset.to_f64()).to_i32_round(),
|
||||
1.0,
|
||||
blur_strength,
|
||||
&mut |elem| {
|
||||
elements.push(
|
||||
RelocateRenderElement::from_element(
|
||||
CursorRenderElement::Surface(elem),
|
||||
Point::new(0, 0),
|
||||
Relocate::Relative,
|
||||
elements
|
||||
.push(
|
||||
RelocateRenderElement::from_element(
|
||||
CursorRenderElement::Surface(elem),
|
||||
Point::new(0, 0),
|
||||
Relocate::Relative,
|
||||
)
|
||||
.into(),
|
||||
)
|
||||
.into(),
|
||||
)
|
||||
.into()
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
@ -642,6 +647,7 @@ pub fn render_window_to_buffer(
|
|||
None,
|
||||
false,
|
||||
[0; 4],
|
||||
blur_strength,
|
||||
&mut |elem| elements.push(elem.into()),
|
||||
None,
|
||||
);
|
||||
|
|
@ -817,6 +823,7 @@ pub fn render_cursor_to_buffer(
|
|||
1.0.into(),
|
||||
1.0,
|
||||
common.clock.now(),
|
||||
0,
|
||||
true,
|
||||
&mut |elem, _| {
|
||||
elements.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue