oSoMoN | good morning | 07: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 | ||
Saviq | greyback: re XPending, I'm talking `if(XPending() > 0) { while (XNextEvent()) {} }` | 18:53 |
Saviq | and have that in a slot for QSocketNotifier.activated() on ConnectionNumber() | 18:53 |
greyback | Saviq: yep! I am mid-way of fixing that comment, is wrong | 18:53 |
Saviq | greyback: ConnectionNumber() gives you a fd of the X connection | 18:53 |
Saviq | while (XPending) { while (XNextEvent) }} doesn't really make sense | 18:54 |
greyback | Saviq: Yeah that was rubbish, sorry | 18:54 |
Saviq | no worries | 18:54 |
Saviq | [...] you can then put a QSocketNotifier on that fd | 18:54 |
greyback | I meant while(true){ if (XPending() > 0){ while (XNextEvent()) { ... }}} | 18:55 |
Saviq | that will fire activated() whenever that fd is ready to be read | 18:55 |
greyback | but it works badly | 18:55 |
Saviq | yeah, it just loops | 18:55 |
greyback | Yeah, I understand | 18:55 |
Saviq | greyback: I only learned that while working on gestures recently, so that was a big facepalm :) | 18:57 |
greyback | Saviq: it's a much nicer solution than what I was trying anyway | 18:57 |
Saviq | greyback: and what I initially wrote, too | 19:00 |
greyback | Saviq: are you working on it now? Or something related? | 19:00 |
greyback | I don't want to duplicate your work again | 19:01 |
Saviq | greyback: no, just seen your comment on the merge | 19:01 |
greyback | Saviq: ok. Comment hudely appreciated! | 19:01 |
greyback | hugely even | 19:01 |
Saviq | greyback: should be easy | 19:01 |
greyback | Saviq: doing it now :) | 19:02 |
Saviq | greyback: GestureHandler in launcher does ~that now | 19:04 |
Saviq | just with fd from utouch, not X | 19:04 |
greyback | Saviq: I see. Will check it out | 19: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!