[mutter/wip/wayland] wayland: Move the parent wayland_surface to top of struct



commit 2ab45d4777fd46bf13456c4b07101271603c715b
Author: Neil Roberts <neil linux intel com>
Date:   Wed Jan 11 17:28:47 2012 +0000

    wayland: Move the parent wayland_surface to top of struct
    
    The Weston demo compositor casts between weston_surface and wl_surface
    pointers interchangeably. For this to work also in mutter the parent
    struct wl_surface has to be the first member in the struct.

 src/wayland/meta-wayland-private.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-private.h b/src/wayland/meta-wayland-private.h
index 4e7f7fa..e12af3d 100644
--- a/src/wayland/meta-wayland-private.h
+++ b/src/wayland/meta-wayland-private.h
@@ -37,8 +37,8 @@ typedef struct
 
 typedef struct
 {
-  MetaWaylandCompositor *compositor;
   struct wl_surface wayland_surface;
+  MetaWaylandCompositor *compositor;
   guint32 xid;
   int x;
   int y;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]