mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -05:00
Chase wlroots: every scene_node parent is now a tree
Chases wlroots ccd0f85c2a36308e35b153c7f9653abac7659af3 wlr_scene: Only allow parenting on a wlr_scene_tree
This commit is contained in:
parent
b7c9d0e055
commit
2ed7a10779
20 changed files with 97 additions and 93 deletions
|
|
@ -278,7 +278,7 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
|
|||
return NULL;
|
||||
}
|
||||
#if HAVE_XWAYLAND
|
||||
if (node->parent == &server->unmanaged_tree->node) {
|
||||
if (node->parent == server->unmanaged_tree) {
|
||||
*view_area = LAB_SSD_UNMANAGED;
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -311,7 +311,8 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
node = node->parent;
|
||||
/* node->parent is always a *wlr_scene_tree */
|
||||
node = node->parent ? &node->parent->node : NULL;
|
||||
}
|
||||
if (!node) {
|
||||
wlr_log(WLR_ERROR, "Unknown node detected");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue