feat: support client fade int fade out only animaiton

This commit is contained in:
DreamMaoMao 2025-07-11 22:54:30 +08:00
parent fed7fb854a
commit e046053954
2 changed files with 30 additions and 40 deletions

View file

@ -108,16 +108,16 @@ static bool scene_node_snapshot(struct wlr_scene_node *node, int lx, int ly,
break;
case WLR_SCENE_NODE_RECT:;
struct wlr_scene_rect *scene_rect = wlr_scene_rect_from_node(node);
// struct wlr_scene_rect *scene_rect = wlr_scene_rect_from_node(node);
struct wlr_scene_rect *snapshot_rect =
wlr_scene_rect_create(snapshot_tree, scene_rect->width,
scene_rect->height, scene_rect->color);
snapshot_rect->node.data = scene_rect->node.data;
if (snapshot_rect == NULL) {
return false;
}
snapshot_node = &snapshot_rect->node;
// struct wlr_scene_rect *snapshot_rect =
// wlr_scene_rect_create(snapshot_tree, scene_rect->width,
// scene_rect->height, scene_rect->color);
// snapshot_rect->node.data = scene_rect->node.data;
// if (snapshot_rect == NULL) {
// return false;
// }
// snapshot_node = &snapshot_rect->node;
break;
case WLR_SCENE_NODE_BUFFER:;