aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-01 19:00:11 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-01 19:00:19 +0400
commit365dbacae7ed9b6dcee2c9a9281e9a531b842007 (patch)
tree5341d8e18b63f8ce30e721ef79c3524fc34b1834 /src/window
parentaf9caa1d9b176fe3606323a8c05c0c741c1f6c0a (diff)
downloadniri-365dbacae7ed9b6dcee2c9a9281e9a531b842007.tar.gz
niri-365dbacae7ed9b6dcee2c9a9281e9a531b842007.tar.bz2
niri-365dbacae7ed9b6dcee2c9a9281e9a531b842007.zip
Move unmap snapshot from Mapped to Tile
Diffstat (limited to 'src/window')
-rw-r--r--src/window/mapped.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs
index 9686a15f..90598431 100644
--- a/src/window/mapped.rs
+++ b/src/window/mapped.rs
@@ -47,9 +47,6 @@ pub struct Mapped {
/// Buffer to draw instead of the window when it should be blocked out.
block_out_buffer: RefCell<SolidColorBuffer>,
- /// Snapshot of the last render for use in the close animation.
- unmap_snapshot: RefCell<Option<LayoutElementRenderSnapshot>>,
-
/// Whether the next configure should be animated, if the configured state changed.
animate_next_configure: bool,
@@ -69,7 +66,6 @@ impl Mapped {
need_to_recompute_rules: false,
is_focused: false,
block_out_buffer: RefCell::new(SolidColorBuffer::new((0, 0), [0., 0., 0., 1.])),
- unmap_snapshot: RefCell::new(None),
animate_next_configure: false,
animate_serials: Vec::new(),
animation_snapshot: None,
@@ -156,15 +152,6 @@ impl Mapped {
}
}
- pub fn store_unmap_snapshot_if_empty(&self, renderer: &mut GlesRenderer) {
- let mut snapshot = self.unmap_snapshot.borrow_mut();
- if snapshot.is_some() {
- return;
- }
-
- *snapshot = Some(self.render_snapshot(renderer));
- }
-
pub fn should_animate_commit(&mut self, commit_serial: Serial) -> bool {
let mut should_animate = false;
self.animate_serials.retain_mut(|serial| {
@@ -380,10 +367,6 @@ impl LayoutElement for Mapped {
&self.rules
}
- fn take_unmap_snapshot(&self) -> Option<LayoutElementRenderSnapshot> {
- self.unmap_snapshot.take()
- }
-
fn animation_snapshot(&self) -> Option<&LayoutElementRenderSnapshot> {
self.animation_snapshot.as_ref()
}