mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Chase wlroots: scene_node.state is now inlined
Chases wlroots cb2dbc327e4d695c2a60a386e116a7dc20b29107 wlr_scene: Inline wlr_scene_node_state
This commit is contained in:
parent
2ed7a10779
commit
08518513cc
8 changed files with 16 additions and 16 deletions
|
|
@ -99,7 +99,7 @@ ssd_extents_update(struct view *view)
|
|||
wlr_scene_node_set_enabled(&view->ssd.extents.tree->node, false);
|
||||
return;
|
||||
}
|
||||
if (!view->ssd.extents.tree->node.state.enabled) {
|
||||
if (!view->ssd.extents.tree->node.enabled) {
|
||||
wlr_scene_node_set_enabled(&view->ssd.extents.tree->node, true);
|
||||
}
|
||||
|
||||
|
|
@ -177,7 +177,7 @@ ssd_extents_update(struct view *view)
|
|||
/* Not visible */
|
||||
wlr_scene_node_set_enabled(part->node, false);
|
||||
continue;
|
||||
} else if (!part->node->state.enabled) {
|
||||
} else if (!part->node->enabled) {
|
||||
wlr_scene_node_set_enabled(part->node, true);
|
||||
}
|
||||
|
||||
|
|
@ -193,8 +193,8 @@ ssd_extents_update(struct view *view)
|
|||
}
|
||||
|
||||
/* Fully visible */
|
||||
if (target->x != part->node->state.x
|
||||
|| target->y != part->node->state.y) {
|
||||
if (target->x != part->node->x
|
||||
|| target->y != part->node->y) {
|
||||
wlr_scene_node_set_position(part->node, target->x, target->y);
|
||||
}
|
||||
if (target->width != rect->width || target->height != rect->height) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue