[PATCH 6/7] xdg-shell: Remove surface_set_maximized and surface_set_fullscreen.

antognolli at gmail.com antognolli at gmail.com
Fri Jul 19 12:42:48 PDT 2013


From: Rafael Antognolli <rafael.antognolli at intel.com>

Remove these requests since they are not in the xdg-shell protocol
anymore.
---
 src/xdg-surface.c | 38 --------------------------------------
 1 file changed, 38 deletions(-)

diff --git a/src/xdg-surface.c b/src/xdg-surface.c
index 32fea0f..cbc7126 100644
--- a/src/xdg-surface.c
+++ b/src/xdg-surface.c
@@ -1757,19 +1757,6 @@ set_maximized(struct wl_client *client,
 }
 
 static void
-shell_surface_set_maximized(struct wl_client *client,
-			    struct wl_resource *resource,
-			    struct wl_resource *output_resource )
-{
-	struct shell_surface *shsurf = resource->data;
-
-	surface_clear_next_states(shsurf);
-	set_maximized(client, resource, output_resource);
-	shsurf->next.maximized = true;
-	shsurf->state_changed = true;
-}
-
-static void
 shell_surface_state_set_maximized(struct wl_client *client,
 				  struct wl_resource *resource,
 				  struct wl_resource *output_resource)
@@ -1978,29 +1965,6 @@ set_fullscreen(struct shell_surface *shsurf,
 }
 
 static void
-shell_surface_set_fullscreen(struct wl_client *client,
-			     struct wl_resource *resource,
-			     uint32_t method,
-			     uint32_t framerate,
-			     struct wl_resource *output_resource)
-{
-	struct shell_surface *shsurf = wl_resource_get_user_data(resource);
-	struct weston_output *output;
-
-	if (output_resource)
-		output = wl_resource_get_user_data(output_resource);
-	else
-		output = NULL;
-
-	surface_clear_next_states(shsurf);
-
-	set_fullscreen(shsurf, method, framerate, output);
-
-	shsurf->next.fullscreen = true;
-	shsurf->state_changed = true;
-}
-
-static void
 shell_surface_state_set_fullscreen(struct wl_client *client,
 				   struct wl_resource *resource,
 				   uint32_t method,
@@ -2280,9 +2244,7 @@ static const struct xdg_surface_interface shell_surface_implementation = {
 	shell_surface_resize,
 	shell_surface_set_toplevel,
 	shell_surface_set_transient,
-	shell_surface_set_fullscreen,
 	shell_surface_set_popup,
-	shell_surface_set_maximized,
 	shell_surface_set_title,
 	shell_surface_set_class,
 	shell_surface_state_set_maximized,
-- 
1.7.11.7



More information about the wayland-devel mailing list