[PATCH weston 2/4] desktop-shell: Get rid of some unused fields

Mike Blumenkrantz michael.blumenkrantz at gmail.com
Thu Apr 21 15:31:58 UTC 2016


Reviewed-By: Mike Blumenkrantz <zmike at osg.samsung.com>

On Wed, Apr 20, 2016 at 11:11 PM Jonas Ådahl <jadahl at gmail.com> wrote:

> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
> ---
>  desktop-shell/shell.c | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
> index f705c99..cd269a8 100644
> --- a/desktop-shell/shell.c
> +++ b/desktop-shell/shell.c
> @@ -124,9 +124,7 @@ struct shell_surface {
>         enum shell_surface_type type;
>         char *title, *class;
>         int32_t saved_x, saved_y;
> -       int32_t saved_width, saved_height;
>         bool saved_position_valid;
> -       bool saved_size_valid;
>         bool saved_rotation_valid;
>         int unresponsive, grabbed;
>         uint32_t resize_edges;
> @@ -2704,9 +2702,6 @@ set_full_output(struct shell_surface *shsurf)
>  {
>         shsurf->saved_x = shsurf->view->geometry.x;
>         shsurf->saved_y = shsurf->view->geometry.y;
> -       shsurf->saved_width = shsurf->surface->width;
> -       shsurf->saved_height = shsurf->surface->height;
> -       shsurf->saved_size_valid = true;
>         shsurf->saved_position_valid = true;
>
>         if (!wl_list_empty(&shsurf->rotation.transform.link)) {
> @@ -3705,7 +3700,6 @@ create_common_surface(struct shell_client *owner,
> void *shell,
>         shsurf->shell = (struct desktop_shell *) shell;
>         shsurf->unresponsive = 0;
>         shsurf->saved_position_valid = false;
> -       shsurf->saved_size_valid = false;
>         shsurf->saved_rotation_valid = false;
>         shsurf->surface = surface;
>         shsurf->fullscreen.type =
> WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT;
> --
> 2.5.5
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160421/398a37a1/attachment-0001.html>


More information about the wayland-devel mailing list