# HG changeset patch # User jkeil # Date 1035056836 0 # Node ID 48b7d7fd7075d4dc92f01b7e68a6c48744751148 # Parent 1dd34db6cb92260e962d9fe1d55369ede66194f6 - 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) diff -r 1dd34db6cb92 -r 48b7d7fd7075 Gui/wm/ws.c --- 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,