diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 8e12a7bb9..d8d561901 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -39,6 +39,7 @@ #include "compositor/region-utils.h" #include "core/display-private.h" #include "core/window-private.h" +#include "wayland/meta-wayland-actor-surface.h" #include "wayland/meta-wayland-buffer.h" #include "wayland/meta-wayland-data-device.h" #include "wayland/meta-wayland-gtk-shell.h" @@ -91,9 +92,14 @@ struct _MetaWaylandSurfaceRoleDND MetaWaylandSurfaceRole parent; }; +G_DECLARE_FINAL_TYPE (MetaWaylandSurfaceRoleDND, + meta_wayland_surface_role_dnd, + META, WAYLAND_SURFACE_ROLE_DND, + MetaWaylandActorSurface); + G_DEFINE_TYPE (MetaWaylandSurfaceRoleDND, meta_wayland_surface_role_dnd, - META_TYPE_WAYLAND_SURFACE_ROLE); + META_TYPE_WAYLAND_ACTOR_SURFACE); enum { SURFACE_DESTROY, diff --git a/src/wayland/meta-wayland-surface.h b/src/wayland/meta-wayland-surface.h index f84d88061..dd8009b8b 100644 --- a/src/wayland/meta-wayland-surface.h +++ b/src/wayland/meta-wayland-surface.h @@ -70,10 +70,8 @@ struct _MetaWaylandSerial { }; #define META_TYPE_WAYLAND_SURFACE_ROLE_DND (meta_wayland_surface_role_dnd_get_type ()) -G_DECLARE_FINAL_TYPE (MetaWaylandSurfaceRoleDND, - meta_wayland_surface_role_dnd, - META, WAYLAND_SURFACE_ROLE_DND, - MetaWaylandSurfaceRole); + +GType meta_wayland_surface_role_dnd_get_type (void); struct _MetaWaylandPendingState {