[xmonad] Issue 573 in xmonad: XMonad.Util.XSelection.getSelection leaks a handle to the X server
codesite-noreply at google.com
codesite-noreply at google.com
Sat May 31 23:53:05 UTC 2014
Comment #4 on issue 573 by gwe... at gmail.com:
XMonad.Util.XSelection.getSelection leaks a handle to the X server
http://code.google.com/p/xmonad/issues/detail?id=573
So could we do that as:
hunk ./XMonad/Util/XSelection.hs 66
- if ev_event_type ev == selectionNotify
- then do res <- getWindowProperty8 dpy clp win
- return $ decode . map fromIntegral . fromMaybe [] $ res
- else destroyWindow dpy win >> return ""
+ result <- if ev_event_type ev == selectionNotify
+ then do res <- getWindowProperty8 dpy clp win
+ return $ decode . map fromIntegral .
fromMaybe [] $ res
+ else destroyWindow dpy win >> return ""
+ closeDisplay dpy
+ return result
? Compiles, anyway.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
More information about the xmonad
mailing list