[PATCH:xdm 1/5] Use C99 named initializers for XSetWindowAttributes structure
Alan Coopersmith
alan.coopersmith at oracle.com
Thu Jun 2 22:10:08 PDT 2011
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
More information about the xorg-devel
mailing list