diff options
author | Kirill Primak <[email protected]> | 2022-05-31 21:40:03 +0300 |
---|---|---|
committer | Isaac Freund <[email protected]> | 2022-06-01 09:49:25 +0000 |
commit | 60eff6dd7f02dbfceff444bb8921a3b29ff71c3f (patch) | |
tree | 88cb293abc6566ad804d13a8332258169b86fe6d /subsurface_tree.c | |
parent | 76e40fe163b5fbdfd920cd95c1a103b69bbbd8a9 (diff) |
scene/output-layout: improve ownership logic
This commit ensures that outputs that weren't created by the output
layout helper aren't destroyed on the output layout change.
Consider the following piece of logic:
// struct wlr_output *o1, *o2;
// struct wlr_scene *scene;
// struct wlr_output_layout *layout;
wlr_scene_attach_output_layout(scene, layout);
wlr_output_layout_add_auto(layout, o1);
struct wlr_scene_output *so2 = wlr_scene_output_create(scene, o2);
wlr_output_layout_move(layout, o1, 100, 200);
// so2 is invalid now
Diffstat (limited to 'subsurface_tree.c')
0 files changed, 0 insertions, 0 deletions