summaryrefslogtreecommitdiff
path: root/tests/motion-compression.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop most uses of GtkMisc in testsMatthias Clasen2014-05-131-1/+1
| | | | | | | Replace them by GtkWidget h/valign. The only remaining uses are those where a size group is involved; they can't be replaced until GtkLabel stops looking at GtkMisc alignment for size allocation.
* Compress motion synchronized with the paint cycleOwen W. Taylor2013-02-141-0/+72
When we have pending motion events, instead of delivering them directly, request the new FLUSH_EVENTS phase of the frame clock. This allows us to compress repeated motion events sent to the same window. In the FLUSH_EVENTS phase, which occur at priority GDK_PRIORITY_EVENTS + 1, we deliver any pending motion events then turn off event delivery until the end of the next frame. Turning off event delivery means that we'll reliably paint the compressed motion events even if more have arrived. Add a motion-compression test case which demonstrates behavior when an application takes too long handle motion events. It is unusable without this patch but behaves fine with the patch. https://bugzilla.gnome.org/show_bug.cgi?id=685460