From c031e72de2b6461698a448914dea54a6d8f3365e Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Wed, 13 Jun 2007 06:11:12 +0200 Subject: Remove some debugging statements I forgot about earlier darcs-hash:20070613041112-e3110-dfe7bf08177f7a38137a896805c8f340dcccff6c.gz --- Decoration.hs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Decoration.hs') diff --git a/Decoration.hs b/Decoration.hs index 7ad124c..f5b614e 100644 --- a/Decoration.hs +++ b/Decoration.hs @@ -20,12 +20,10 @@ newDecoration decfor (Rectangle x y w h) th fg bg draw click = do io $ selectInput d win $ exposureMask .|. buttonPressMask io $ mapWindow d win - trace $ "created decoration " ++ show win - - let hook :: SomeMessage -> X Bool - hook sm | Just e <- fromMessage sm = handle_event e >> (trace $ "handle even " ++ show win ++ show e) >> return True - | Just UnDoLayout == fromMessage sm = io (destroyWindow d win) >> (trace $ "destroyed decoration " ++ show win) >> return False - | otherwise = (trace $ "something weird " ++ show win) >> return True + let hook :: SomeMessage -> X Bool + hook sm | Just e <- fromMessage sm = handle_event e >> return True + | Just UnDoLayout == fromMessage sm = io (destroyWindow d win) >> return False + | otherwise = return True handle_event (ButtonEvent {ev_subwindow = thisw,ev_event_type = t}) | t == buttonPress && thisw == win = click -- cgit v1.2.3