changeset 7801:48b7d7fd7075

- wsErrorHandler was crashing on solaris with a null pointer access in printf; don't crash when current_module is not set. - CWX, CWY, CWWidth, CWHeight are invalid attributes for CreateWindow, they should be used with ConfigureWindow only. (Note: their definition is equivalent to CWBackPixmap, CWBackPixel, CWBorderPixmap, CWBorderPixel)
author jkeil
date Sat, 19 Oct 2002 19:47:16 +0000
parents 1dd34db6cb92
children 037982e833a7
files Gui/wm/ws.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/wm/ws.c	Sat Oct 19 19:06:45 2002 +0000
+++ b/Gui/wm/ws.c	Sat Oct 19 19:47:16 2002 +0000
@@ -161,7 +161,7 @@
  fprintf(stderr,"[ws]  Error code: %d ( %s )\n",Event->error_code,type );
  fprintf(stderr,"[ws]  Request code: %d\n",Event->request_code );
  fprintf(stderr,"[ws]  Minor code: %d\n",Event->minor_code );
- fprintf(stderr,"[ws]  Modules: %s\n",current_module );
+ fprintf(stderr,"[ws]  Modules: %s\n",current_module?current_module:"(NULL)" );
  exit( 0 );
 }
 
@@ -436,7 +436,6 @@
 
  win->WindowMask=CWBackPixel | CWBorderPixel |
                  CWColormap | CWEventMask | CWCursor |
-                 CWX | CWY | CWWidth | CWHeight |
                  CWOverrideRedirect;
 
  win->WindowID=XCreateWindow( wsDisplay,