mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-03 11:08:31 -05:00
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:
parent
1d3dd7fc08
commit
585a908a01
3 changed files with 136 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue