diff options
Diffstat (limited to 'XMonad/ManageHook.hs')
-rw-r--r-- | XMonad/ManageHook.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/ManageHook.hs b/XMonad/ManageHook.hs index fc7017d..be9bc58 100644 --- a/XMonad/ManageHook.hs +++ b/XMonad/ManageHook.hs @@ -74,7 +74,7 @@ title = ask >>= \w -> liftX $ do (internAtom d "_NET_WM_NAME" False >>= getTextProperty d w) `catch` \_ -> getTextProperty d w wM_NAME extract prop = do l <- wcTextPropertyToTextList d prop - return $ if null l then "" else head l + return $ if null l then "" else head l io $ bracket getProp (xFree . tp_value) extract `catch` \_ -> return "" -- | Return the application name. |