diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2016-01-22 14:22:40 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2016-05-01 21:11:27 +0800 |
commit | f318ec9df54c14c06dc2d4a141957a572c2cdcde (patch) | |
tree | 4703b3c2ea705cc59e83a803990f62662aaf0e9e /src/wayland/meta-wayland-surface.h | |
parent | a89aa1d8cccd7926be505b4c7878d4e7f4dd1840 (diff) | |
download | mutter-f318ec9df54c14c06dc2d4a141957a572c2cdcde.tar.gz |
wayland: Move shell surface role fields to the role structs
Don't keep all the role specific fields in MetaWaylandSurface and have
the roles manage the needed fields themself.
https://bugzilla.gnome.org/show_bug.cgi?id=763431
Diffstat (limited to 'src/wayland/meta-wayland-surface.h')
-rw-r--r-- | src/wayland/meta-wayland-surface.h | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/src/wayland/meta-wayland-surface.h b/src/wayland/meta-wayland-surface.h index 8a000230d..9322719da 100644 --- a/src/wayland/meta-wayland-surface.h +++ b/src/wayland/meta-wayland-surface.h @@ -158,16 +158,6 @@ struct _MetaWaylandDragDestFuncs MetaWaylandSurface *surface); }; -typedef enum -{ - META_WL_SHELL_SURFACE_STATE_NONE, - META_WL_SHELL_SURFACE_STATE_TOPLEVEL, - META_WL_SHELL_SURFACE_STATE_POPUP, - META_WL_SHELL_SURFACE_STATE_TRANSIENT, - META_WL_SHELL_SURFACE_STATE_FULLSCREEN, - META_WL_SHELL_SURFACE_STATE_MAXIMIZED, -} MetaWlShellSurfaceState; - struct _MetaWaylandSurface { GObject parent; @@ -212,43 +202,12 @@ struct _MetaWaylandSurface MetaWaylandPendingState *pending; /* Extension resources. */ - struct wl_resource *xdg_surface; - struct wl_resource *xdg_popup; - struct wl_resource *wl_shell_surface; struct wl_resource *gtk_surface; struct wl_resource *wl_subsurface; - /* xdg_surface stuff */ - struct wl_resource *xdg_shell_resource; - MetaWaylandSerial acked_configure_serial; - gboolean has_set_geometry; + /* gtk_surface stuff */ gboolean is_modal; - /* xdg_popup */ - struct { - MetaWaylandSurface *parent; - struct wl_listener parent_destroy_listener; - - MetaWaylandPopup *popup; - } popup; - - /* wl_shell_surface */ - struct { - MetaWlShellSurfaceState state; - - char *title; - char *wm_class; - - gboolean pending_popup; - MetaWaylandSurface *parent_surface; - GList *children; - - MetaWaylandSeat *popup_seat; - - int x; - int y; - } wl_shell; - /* wl_subsurface stuff. */ struct { MetaWaylandSurface *parent; |