[xmonad] Multiple threads

Ernesto Rodriguez neto at netowork.me
Sat Nov 21 22:37:59 UTC 2015


Sounds like an interesting Sunday project :) Thank you for the advice!

On Sat, Nov 21, 2015 at 10:31 PM, Brandon Allbery <allbery.b at gmail.com>
wrote:

>
> On Sat, Nov 21, 2015 at 5:29 PM, Ernesto Rodriguez <neto at netowork.me>
> wrote:
>
>> Oh well, thank you for the reply :) I am trying to do some networking
>> stuff in the X Monad. Do you think there is some workaround such that I do
>> the networking in an additional thread and then when it is done I fire some
>> X11 event that XMonad can be programed to handle and then it can read the
>> data recovered from the network and display it?
>
>
> That would be the ClientMessage I mentioned. You would have your thread
> openDisplay for itself, do whatever, and then use sendMessage to send a
> ClientMessage event to the main thread; you then use handleEventHook to
> catch that event.
>
>
> --
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>



-- 
Ernesto Rodriguez

Masters Student
Computer Science
Utrecht University

www.netowork.me
github.com/netogallo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20151121/70ecc68c/attachment.html>


More information about the xmonad mailing list