mirror of
https://github.com/labwc/labwc.git
synced 2026-02-15 22:05:25 -05:00
ssd: attach LAB_NODE_SSD_ROOT to ssd->tree
This doesn't change any behaviors. Attaching LAB_NODE_NONE node-descriptor to ssd->tree looks strange, this patch uses new LAB_NODE_SSD_ROOT instead. The node-descriptor attached to ssd->tree is needed for get_cursor_context() to detect cursor hovering on borders/extents. I also updated get_cursor_context() to make my intent clearer.
This commit is contained in:
parent
b9b23f5931
commit
574b20fbff
4 changed files with 43 additions and 16 deletions
|
|
@ -17,7 +17,7 @@ struct ssd_state_title_width {
|
|||
* type of each node (enum lab_node_type, stored in the node_descriptor
|
||||
* attached to the wlr_scene_node).
|
||||
*
|
||||
* ssd->tree (LAB_NODE_NONE)
|
||||
* ssd->tree (LAB_NODE_SSD_ROOT)
|
||||
* +--titlebar (LAB_NODE_TITLEBAR)
|
||||
* | +--inactive
|
||||
* | | +--background bar
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue