1
0
Fork 0
forked from wry/wry

tree: add Node::node_layer

This commit is contained in:
Julian Orth 2025-07-19 21:57:47 +02:00
parent a5e8b39e4f
commit dbc954dded
19 changed files with 294 additions and 46 deletions

View file

@ -7,7 +7,7 @@ use {
},
leaks::Tracker,
object::{Object, Version},
tree::Node,
tree::{Node, NodeLayerLink},
utils::{
clonecell::CloneCell,
linkedlist::{LinkedNode, NodeRef},
@ -361,6 +361,10 @@ impl Object for WlSubsurface {
simple_add_obj!(WlSubsurface);
impl SurfaceExt for WlSubsurface {
fn node_layer(&self) -> NodeLayerLink {
self.parent.node_layer()
}
fn commit_requested(self: Rc<Self>, pending: &mut Box<PendingState>) -> CommitAction {
if self.sync() {
let mut parent_pending = self.pending();