JiDe Zhang
ca19014af0
xwayland: fix double free wlr_xwayland_shell_v1
1 year ago
Kirill Primak
529f1b82ee
xwayland/shell: don't listen to wlr_surface.events.destroy
...
The wlr_xwayland_surface_v1 will be destroyed automatically
from xwl_surface_role_destroy().
1 year ago
Kirill Primak
fce7cb249f
xwayland-shell: don't remove inert role resource
1 year ago
Simon Ser
8a5b5e6f28
compositor: listen to role_resource destroy signal
...
Call wlr_surface_destroy_role_object() when the role_resource is
destroyed.
2 years ago
Simon Ser
89cb484220
compositor: replace role_data with role_resource
...
This increases type safety, makes it more obvious that role_data
must represent the role object, and will allow for automatic
cleanup when the resource is destroyed.
2 years ago
Kirill Primak
0f67580aab
compositor: introduce wlr_surface_set_role_object()
2 years ago
Kirill Primak
b355a12751
xwayland/shell: actually use wlr_xwayland_surface_v1.link
...
Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3575
2 years ago
Simon Ser
85b37127a6
xwayland/shell: add wlr_xwayland_shell_v1_surface_from_serial()
2 years ago
Simon Ser
d3b84463f8
xwayland: add wlr_xwayland_shell_v1_destroy()
2 years ago
Simon Ser
44c7e233ff
xwayland: add wlr_xwayland_shell_v1_set_client()
2 years ago
Simon Ser
69b0b296a2
xwayland-shell-v1: new protocol implementation
...
References: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/163
2 years ago