diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-09-05 16:14:25 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-11-23 12:52:20 +0000 |
commit | c85838892d56111809aa2edb83a2f22428bfa806 (patch) | |
tree | 381a2a266c76bbeab2fe2abdc4ff1981bb6bd8fd /examples/scene-graph.c | |
parent | d61ec694b352c0f21c06958c5ef0417f3e424e3c (diff) |
xdg-{shell,decoration}: improve events
This commit changes the behavior of `new_*` signals to better match
their names (see https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3608).
wlr_xdg_shell.events.new_surface is now emitted when an xdg_surface is
created, and wlr_xdg_shell.events.new_{toplevel,popup} events are
introduced to get notified when an xdg_{toplevel,popup} is created.
Same applies to
`wlr_xdg_decoration_manager_v1.events.new_toplevel_decoration`. As a
result, wlr_xdg_surface.added and wlr_xdg_toplevel_decoration_v1.added
are removed, as we no longer need to track whether the corresponding
event was emitted.
Additionally, this commit changes the behavior of
wlr_xdg_surface.events.destroy: it is now emitted when the xdg_surface
is destroyed, as the name suggests.
wlr_xdg_{toplevel,popup}.events.destroy events are added to get
notified when an xdg_{toplevel,popup} is destroyed.
Diffstat (limited to 'examples/scene-graph.c')
0 files changed, 0 insertions, 0 deletions