From f1b6d82acda9c88bfeb8d1913b4d101539c45391 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 28 Nov 2010 22:00:15 +0100 Subject: NEWT/X11: Don't erase background with pixmap or pixel --- src/newt/native/X11Window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newt/native/X11Window.c') diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 7a19cf202..92e60e44b 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -1297,14 +1297,14 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_x11_X11Window_CreateWindow0 pVisualQuery=NULL; } - attrMask = ( CWBackingStore | CWBackingPlanes | CWBackingPixel | CWBackPixel | + attrMask = ( CWBackingStore | CWBackingPlanes | CWBackingPixel | CWBackPixmap | CWBorderPixel | CWColormap | CWOverrideRedirect ) ; memset(&xswa, 0, sizeof(xswa)); // xswa.override_redirect = ( 0 != parent ) ? False : True; xswa.override_redirect = False; // use the window manager, always xswa.border_pixel = 0; - xswa.background_pixel = 0; + xswa.background_pixmap = None; xswa.backing_store=NotUseful; /* NotUseful, WhenMapped, Always */ xswa.backing_planes=0; /* planes to be preserved if possible */ xswa.backing_pixel=0; /* value to use in restoring planes */ -- cgit v1.2.3