[PATCH:xdm 1/5] Use C99 named initializers for XSetWindowAttributes structure

Jeremy Huddleston jeremyhu at apple.com
Fri Jun 3 20:51:28 PDT 2011


Set:
Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On Jun 3, 2011, at 1:10 AM, Alan Coopersmith wrote:

> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> greeter/Login.c |    8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/greeter/Login.c b/greeter/Login.c
> index 90b72fc..961f4dc 100644
> --- a/greeter/Login.c
> +++ b/greeter/Login.c
> @@ -1892,10 +1892,10 @@ static void Realize (
>          * Create pixmap window
>          */
>         {
> -            XSetWindowAttributes windowAttributes = { 0 };
> -
> -            windowAttributes.background_pixel = w->core.background_pixel;
> -            windowAttributes.background_pixmap = None;
> +            XSetWindowAttributes windowAttributes = {
> +                .background_pixel = w->core.background_pixel,
> +                .background_pixmap = None
> +            };
> 
>             w->login.logoWindow = XCreateWindow(XtDisplay(w),
>                 XtWindow(w),
> -- 
> 1.7.3.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list