Re: GDK Event skipping...
- From: Tom Gilbert <gilbertt tomgilbert freeserve co uk>
- To: gtk-list gnome org
- Subject: Re: GDK Event skipping...
- Date: Thu, 17 Aug 2000 23:15:31 +0000
* Tom Gilbert (gilbertt@tomgilbert.freeserve.co.uk) wrote:
> Hey,
> I tried something really crufty like:
>
> if (gdk_events_pending())
> {
> if ((e = gdk_event_get()) != NULL)
> {
> if (e->type == GDK_MOTION_NOTIFY)
> {
> D(5, ("skipping event, new one coming\n"));
> event = e;
> }
> else
> gdk_event_put((GdkEvent *) e);
> }
> }
Urm. Okay, ignore the bug in my test code, I actually do it in a while()
in my app, honest ;-) The results are the same...
Tom.
--
.------------------------------------------------------.
.^. | Tom Gilbert, England | http://www.linuxbrit.co.uk |
/V\ |----------------------| gilbertt@linuxbrit.co.uk |
// \\ | Sites I recommend: `-------------------------------|
/( )\ | www.freshmeat.net www.enlightenment.org slashdot.org |
^^-^^ `------------------------------------------------------'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]