diff options
| author | Tony Crisci <tony@dubstepdish.com> | 2017-08-09 07:12:26 -0400 | 
|---|---|---|
| committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-09 12:31:16 -0400 | 
| commit | 5add87cac602b4fb8a484f42707165d1e2ad8d89 (patch) | |
| tree | 3f12a665aa0597ba2c63f19af11523f8334c78d2 | |
| parent | 15885ab54a821135b94857bd0d9fe017c854906b (diff) | |
| download | wlroots-5add87cac602b4fb8a484f42707165d1e2ad8d89.tar.xz | |
rename wlr_surface to wlr_texture
| -rw-r--r-- | examples/compositor/wl_shell.c | 6 | ||||
| -rw-r--r-- | examples/compositor/xdg_shell.c | 6 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/compositor/wl_shell.c b/examples/compositor/wl_shell.c index b8cf126c..dcff3f91 100644 --- a/examples/compositor/wl_shell.c +++ b/examples/compositor/wl_shell.c @@ -72,7 +72,7 @@ struct wl_shell_surface_interface shell_surface_interface = {  };  struct shell_surface_state { -	struct wlr_surface *wlr_surface; +	struct wlr_texture *wlr_texture;  };  static void destroy_shell_surface(struct wl_resource *resource) { @@ -83,9 +83,9 @@ static void destroy_shell_surface(struct wl_resource *resource) {  void wl_shell_get_shell_surface(struct wl_client *client,  				  struct wl_resource *resource, uint32_t id,  				  struct wl_resource *surface) { -	struct wlr_surface *wlr_surface = wl_resource_get_user_data(surface); +	struct wlr_texture *wlr_texture = wl_resource_get_user_data(surface);  	struct shell_surface_state *state = malloc(sizeof(struct shell_surface_state)); -	state->wlr_surface = wlr_surface; +	state->wlr_texture = wlr_texture;  	struct wl_resource *shell_surface_resource = wl_resource_create(client,  			&wl_shell_surface_interface, wl_resource_get_version(resource), id);  	wl_resource_set_implementation(shell_surface_resource, diff --git a/examples/compositor/xdg_shell.c b/examples/compositor/xdg_shell.c index 82ac6838..5d0d9e8d 100644 --- a/examples/compositor/xdg_shell.c +++ b/examples/compositor/xdg_shell.c @@ -135,7 +135,7 @@ static const struct zxdg_surface_v6_interface zxdg_surface_v6_implementation = {  };  struct xdg_surface_state { -	struct wlr_surface *wlr_surface; +	struct wlr_texture *wlr_texture;  };  static void xdg_shell_destroy(struct wl_client *client, @@ -151,9 +151,9 @@ static void xdg_shell_create_positioner(struct wl_client *client,  static void xdg_shell_get_xdg_surface(struct wl_client *client, struct  		wl_resource *resource, uint32_t id,  		struct wl_resource *surface_resource) { -	struct wlr_surface *wlr_surface = wl_resource_get_user_data(surface_resource); +	struct wlr_texture *wlr_texture = wl_resource_get_user_data(surface_resource);  	struct xdg_surface_state *state = malloc(sizeof(struct xdg_surface_state)); -	state->wlr_surface = wlr_surface; +	state->wlr_texture = wlr_texture;  	struct wl_resource *shell_surface_resource = wl_resource_create(client,  			&zxdg_surface_v6_interface, wl_resource_get_version(resource), id);  	wl_resource_set_implementation(shell_surface_resource,  | 
