/srv/irclogs.ubuntu.com/2011/10/28/#ayatana.txt

oSoMoNgood morning07:05
=== API is now known as apinheiro
=== m_conley_away is now known as m_conley
=== Amaranth_ is now known as Amaranth
=== yofel_ is now known as yofel
Saviqgreyback: re XPending, I'm talking `if(XPending() > 0) { while (XNextEvent()) {} }`18:53
Saviqand have that in a slot for QSocketNotifier.activated() on ConnectionNumber()18:53
greybackSaviq: yep! I am mid-way of fixing that comment, is wrong18:53
Saviqgreyback: ConnectionNumber() gives you a fd of the X connection18:53
Saviqwhile (XPending) { while (XNextEvent) }} doesn't really make sense18:54
greybackSaviq: Yeah that was rubbish, sorry18:54
Saviqno worries18:54
Saviq[...] you can then put a QSocketNotifier on that fd18:54
greybackI meant while(true){ if (XPending() > 0){ while (XNextEvent()) {  ... }}}18:55
Saviqthat will fire activated() whenever that fd is ready to be read18:55
greybackbut it works badly18:55
Saviqyeah, it just loops18:55
greybackYeah, I understand18:55
Saviqgreyback: I only learned that while working on gestures recently, so that was a big facepalm :)18:57
greybackSaviq: it's a much nicer solution than what I was trying anyway18:57
Saviqgreyback: and what I initially wrote, too19:00
greybackSaviq: are you working on it now? Or something related?19:00
greybackI don't want to duplicate your work again19:01
Saviqgreyback: no, just seen your comment on the merge19:01
greybackSaviq: ok. Comment hudely appreciated!19:01
greybackhugely even19:01
Saviqgreyback: should be easy19:01
greybackSaviq: doing it now :)19:02
Saviqgreyback: GestureHandler in launcher does ~that now19:04
Saviqjust with fd from utouch, not X19:04
greybackSaviq: I see. Will check it out19:04
=== m_conley is now known as m_conley_away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!