mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04: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
|
|
@ -59,6 +59,12 @@ enum lab_node_type {
|
|||
LAB_NODE_LAYER_POPUP,
|
||||
LAB_NODE_SESSION_LOCK_SURFACE,
|
||||
LAB_NODE_IME_POPUP,
|
||||
|
||||
/*
|
||||
* translated to LAB_CORNER_* or LAB_BORDER* by
|
||||
* ssd_get_resizing_type()
|
||||
*/
|
||||
LAB_NODE_SSD_ROOT,
|
||||
};
|
||||
|
||||
enum lab_node_type node_type_parse(const char *context);
|
||||
|
|
|
|||
|
|
@ -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