Make scene output layout API more explicit
wlr_scene_output_layout
creates scene outputs on its own, which means compositors that want to access them have to grab them out of the scene after they've been created implicitly. It also means that compositors can't pass things into wlr_scene_output_create
, which isn't necessary at the moment but is for !4307. I can see two ways to solve this, with both removing the scene_output_layout_handle_layout_add
listener:
- make compositors call
scene_output_layout_add()
themselves after adding an output to the layout - make SOL be a layer on top of OL - compositors would call
scene_output_layout_add()
and notwlr_output_layout_add{,_auto}()
, and the SOL would internally add the output to the OL
Both of these would allow scene_output_layout_add()
to take a scene_output, because currently it doesn't do anything special in creating it.