- Update `ssd.state` in `ssd_create()` to avoid doing unnecessary work in
the next call to `ssd_update_geometry()`
- Reset `ssd.margin` in `ssd_destroy()` to avoid accidentally using stale
values
ssd_titlebar_create(view);
view->ssd.margin = ssd_thickness(view);
ssd_set_active(view, active);
+
+ view->ssd.state.width = view->w;
+ view->ssd.state.height = view->h;
+ view->ssd.state.x = view->x;
+ view->ssd.state.y = view->y;
}
void
ssd_extents_destroy(view);
wlr_scene_node_destroy(&view->ssd.tree->node);
view->ssd.tree = NULL;
+ view->ssd.margin = (struct border){ 0 };
}
bool