common: add and use CONNECT_SIGNAL macro

This makes the code a bit more readable IMHO (and forces us to be
consistent with event handler function names).

Adjust scripts/checkpatch.pl to not complain.
This commit is contained in:
John Lindgren 2023-10-16 02:01:35 -04:00 committed by Johan Malm
parent a036d985d7
commit 5cb1d0e83f
6 changed files with 73 additions and 101 deletions

View file

@ -20,7 +20,7 @@ struct xwayland_unmanaged {
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener destroy;
struct wl_listener override_redirect;
struct wl_listener set_override_redirect;
};
struct xwayland_view {
@ -30,9 +30,9 @@ struct xwayland_view {
/* Events unique to XWayland views */
struct wl_listener request_activate;
struct wl_listener request_configure;
struct wl_listener set_app_id; /* TODO: s/set_app_id/class/ */
struct wl_listener set_class;
struct wl_listener set_decorations;
struct wl_listener override_redirect;
struct wl_listener set_override_redirect;
/* Not (yet) implemented */
/* struct wl_listener set_role; */