]> Pileus Git - ~andy/gtk/commit
Fix gdk_device_get_history() for the core pointer
authorMichael Natterer <mitch@gimp.org>
Thu, 17 Sep 2009 09:38:14 +0000 (11:38 +0200)
committerMichael Natterer <mitch@gimp.org>
Thu, 17 Sep 2009 09:38:14 +0000 (11:38 +0200)
commit659776ce35b4894c5217325978aa48a79689d669
tree48f0271ce16133d26f3024b1d63cd6130ea06412
parent8251d6da8a17ae3cc8ec668b4722b05a92a5c2e2
Fix gdk_device_get_history() for the core pointer

When filtering out the events for "window" from the events we got for
our "impl_window", don't forget to adjust the returned number of
events because it might be smaller than what XGetMotionEvents has
returned, and free coords we allocated too much. Also if we filtered
away *all* events, return FALSE and get rid of the allocated history
entirely. Together fixes all sorts of mishehavior when painting in
GIMP, from coords going wild to plain crashes and infinite loops.
gdk/x11/gdkinput.c