[clutter/fosdem-2012] test-wayland-surface: Move the parent wayland_surface to top of struct



commit 3eacba3b3ae28bde262e1d53c6f20720e894a3f2
Author: Neil Roberts <neil linux intel com>
Date:   Tue Jan 10 17:42:13 2012 +0000

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

 tests/interactive/test-wayland-surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/interactive/test-wayland-surface.c b/tests/interactive/test-wayland-surface.c
index 0068361..8840f17 100644
--- a/tests/interactive/test-wayland-surface.c
+++ b/tests/interactive/test-wayland-surface.c
@@ -30,8 +30,8 @@ typedef struct
 
 typedef struct
 {
-  TWSCompositor *compositor;
   struct wl_surface wayland_surface;
+  TWSCompositor *compositor;
   int x;
   int y;
   TWSBuffer *buffer;



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