scene: add wlr_scene_xdg_surface_create

This allows compositors to easily add an xdg_surface to the
scene-graph while retaining the ability to unconstraint popups
and decide their final position.

Compositors can handle new popups with the wlr_xdg_shell.new_surface
event, get the parent scene-graph node via wlr_xdg_popup.parent.data,
create a new scene-graph node via wlr_scene_xdg_surface_tree_create,
and unconstraint the popup if they want to.
This commit is contained in:
Simon Ser 2021-10-25 18:29:24 +02:00
parent 1d3dd7fc08
commit 585a908a01
3 changed files with 136 additions and 0 deletions

View file

@ -10,6 +10,7 @@ wlr_files += files(
'scene/subsurface_tree.c',
'scene/wlr_scene.c',
'scene/output_layout.c',
'scene/xdg_shell.c',
'seat/wlr_seat_keyboard.c',
'seat/wlr_seat_pointer.c',
'seat/wlr_seat_touch.c',