
30 Sep
2009
30 Sep
'09
8:42 a.m.
Hi there! I would like to ask for some comments/tips for improvements on the attached patch. It probably could use the Maybe monad to avoid all those if/thens, but I'm still a little bit unsure when it comes to using two monads at the same time (here the X monad and the Maybe monad). So how would this work here? Also, someone mentioned that it might be better to look at the gravity of the window to figure out if it requested a specifiy geometry, instead of checking for non-zero position. Does anyone have more details on how exactly I would do this? Thx in advance! Jan