mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Implement custom shader for window-close anim
This commit is contained in:
@@ -1344,7 +1344,7 @@ impl<W: LayoutElement> Workspace<W> {
|
||||
tile_pos.x -= offset;
|
||||
}
|
||||
|
||||
let anim = Animation::new(1., 0., 0., self.options.animations.window_close.0);
|
||||
let anim = Animation::new(0., 1., 0., self.options.animations.window_close.anim);
|
||||
|
||||
let res = ClosingWindow::new(
|
||||
renderer,
|
||||
@@ -2095,7 +2095,7 @@ impl<W: LayoutElement> Workspace<W> {
|
||||
// Draw the closing windows on top.
|
||||
let view_rect = Rectangle::from_loc_and_size((self.view_pos(), 0), self.view_size);
|
||||
for closing in &self.closing_windows {
|
||||
let elem = closing.render(view_rect, output_scale, target);
|
||||
let elem = closing.render(renderer.as_gles_renderer(), view_rect, output_scale, target);
|
||||
rv.push(elem.into());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user