1
0
Fork 0
forked from wry/wry

Retain surface textures for animations

This commit is contained in:
atagen 2026-05-21 15:45:32 +10:00
parent 3540cdc4be
commit fba9d65ba1
8 changed files with 365 additions and 19 deletions

View file

@ -2,6 +2,7 @@ pub mod xdg_dialog_v1;
use {
crate::{
animation::RetainedToplevel,
bugs,
bugs::Bugs,
client::{Client, ClientError},
@ -779,6 +780,11 @@ impl ToplevelNodeBase for XdgToplevel {
Some(self.xdg.surface.clone())
}
fn tl_animation_snapshot(&self) -> Option<Rc<RetainedToplevel>> {
let geo = self.xdg.geometry();
RetainedToplevel::capture_surface(&self.xdg.surface, (-geo.x1(), -geo.y1()))
}
fn tl_restack_popups(&self) {
self.xdg.restack_popups();
}