mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-19 06:59:56 -05:00
feat: support client fade int fade out only animaiton
This commit is contained in:
parent
fed7fb854a
commit
e046053954
2 changed files with 30 additions and 40 deletions
|
|
@ -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:;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue