[clutter/wip/wayland: 21/45] test-wayland-surface: Move the parent wayland_surface to top of struct
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/wayland: 21/45] test-wayland-surface: Move the parent wayland_surface to top of struct
- Date: Wed, 22 Feb 2012 18:01:28 +0000 (UTC)
commit 1b2e9476c38c4947088227f4e5239bdb58f05ad1
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]