mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
chase: use wlroots tree node getters
This commit is contained in:
parent
e841d44b6f
commit
41891209fc
8 changed files with 9 additions and 27 deletions
|
|
@ -6,20 +6,6 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include "common/scene-helpers.h"
|
||||
|
||||
struct wlr_scene_rect *
|
||||
lab_wlr_scene_get_rect(struct wlr_scene_node *node)
|
||||
{
|
||||
assert(node->type == WLR_SCENE_NODE_RECT);
|
||||
return (struct wlr_scene_rect *)node;
|
||||
}
|
||||
|
||||
struct wlr_scene_tree *
|
||||
lab_scene_tree_from_node(struct wlr_scene_node *node)
|
||||
{
|
||||
assert(node->type == WLR_SCENE_NODE_TREE);
|
||||
return (struct wlr_scene_tree *)node;
|
||||
}
|
||||
|
||||
struct wlr_surface *
|
||||
lab_wlr_surface_from_node(struct wlr_scene_node *node)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue