changeset 31323:c674bb16fa6d

Install error handler as early as possible to avoid crashing.
author reimar
date Sun, 13 Jun 2010 17:59:59 +0000
parents 016194f71de3
children 7fba3e0df3cb
files gui/wm/ws.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Sun Jun 13 17:20:29 2010 +0000
+++ b/gui/wm/ws.c	Sun Jun 13 17:59:59 2010 +0000
@@ -210,6 +210,8 @@
   }
 }
 
+ XSetErrorHandler( wsErrorHandler );
+
 /* enable DND atoms */
 wsXDNDInitialize();
 
@@ -330,7 +332,6 @@
      wsConvFunc=rgb32tobgr15;
      break;
   }
- XSetErrorHandler( wsErrorHandler );
 }
 
 // ----------------------------------------------------------------------------------------------