diff mde/gui/WMScreen.d @ 173:a1ba9157510e

Enabled ServiceContentList to call its callbacks when its value changes. Tried to fix some other bugs, but this is not a very clean commit, due to wanting to make some big changes to enable better use of invariants next.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 08 Aug 2009 15:53:10 +0200
parents 7f7b2011b759
children 3d58adc17d20
line wrap: on
line diff
--- a/mde/gui/WMScreen.d	Wed Jul 29 20:28:22 2009 +0200
+++ b/mde/gui/WMScreen.d	Sat Aug 08 15:53:10 2009 +0200
@@ -28,6 +28,7 @@
 import mde.setup.Screen;
 import mde.input.Input;
 
+import tango.io.Console;	// to print exception stack-trace
 import tango.util.log.Log : Log, Logger;
 
 private Logger logger;
@@ -89,7 +90,8 @@
 	    wmMouseClick (cast(wdabs) usx, cast(wdabs) usy, b, state);
         } catch (Exception e) {
             logger.error ("clickEvent: exception processing event: {}", e.msg);
-        }
+	    e.writeOut(delegate void(char[]s){ Cerr(s); });
+	}
     }
     
     /** For mouse motion events. */