mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
ssd: Allocate struct ssd and struct ssd_hover_state separately
- Store a pointer to the `struct view` in `struct ssd` - Pass `struct ssd *` instead of `struct view *` to ssd functions - Add `ssd_get_margin()` convenience function
This commit is contained in:
parent
cfa51ab628
commit
1e8b0414fe
15 changed files with 112 additions and 65 deletions
|
|
@ -61,7 +61,7 @@ get_view_part(struct view *view, struct wlr_scene_node *node)
|
|||
return "view->scene_node";
|
||||
}
|
||||
if (view) {
|
||||
return ssd_debug_get_node_name(&view->ssd, node);
|
||||
return ssd_debug_get_node_name(view->ssd, node);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -159,7 +159,7 @@ dump_tree(struct server *server, struct wlr_scene_node *node,
|
|||
|
||||
if ((IGNORE_MENU && node == &server->menu_tree->node)
|
||||
|| (IGNORE_SSD && view
|
||||
&& ssd_debug_is_root_node(&view->ssd, node))) {
|
||||
&& ssd_debug_is_root_node(view->ssd, node))) {
|
||||
printf("%*c%s\n", pos + 4 + INDENT_SIZE, ' ', "<skipping children>");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue