]> git.mdlowis.com Git - proto/labwc.git/commitdiff
ssd-titlebar: don't bind ssd_part to ssd->tree
authortokyo4j <hrak1529@gmail.com>
Sat, 6 Sep 2025 18:42:50 +0000 (03:42 +0900)
committerJohn Lindgren <john@jlindgren.net>
Sat, 6 Sep 2025 20:00:20 +0000 (16:00 -0400)
Fixes up f347a81. This mistake didn't cause misbehaviors because the
ssd_part bound to ssd->tree is just a placeholder to let
get_cursor_context() call ssd_get_resizing_type() when the cursor is on
border/extents.

src/ssd/ssd-titlebar.c

index 13e3ebf692f62e746dbf6ad2ecc44cc5ac911edd..e2cb2e061940609bbdbc0e7b3386f772c49607a9 100644 (file)
@@ -33,7 +33,7 @@ ssd_titlebar_create(struct ssd *ssd)
        int corner_width = ssd_get_corner_width();
 
        ssd->titlebar.tree = wlr_scene_tree_create(ssd->tree);
-       attach_ssd_part(LAB_SSD_PART_TITLEBAR, view, &ssd->tree->node);
+       attach_ssd_part(LAB_SSD_PART_TITLEBAR, view, &ssd->titlebar.tree->node);
 
        enum ssd_active_state active;
        FOR_EACH_ACTIVE_STATE(active) {