
Comment #5 on issue 573 by allber...@gmail.com: XMonad.Util.XSelection.getSelection leaks a handle to the X server http://code.google.com/p/xmonad/issues/detail?id=573 You may never receive an event if the selection owner dies/exits before responding to SelectionRequest. You may also receive things like keyboard mapping notifications which you'll want to ignore. I don't think there's a simple "naïve" solution here, much as with putSelection. You do it right or you have the potential for deadlocks. If we're going to insist on not using callbacks then I guess for now we accept and document the deadlock potential. A future replacement for this thing (someday! I started on it to fix putSelection, but there is no hope for a compatible interface because you simply cannot do it this way) will need to use callbacks. My proposed design uses a handleEventHook and some ExtensibleState. -- 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