Don't use poll timeout for timing animation.

Receiving events breaks out of the poll and resets the time out.
Effectively, this blocks the animation when the client receives events.
As a quick fix, use timerfd for timing the animation.
This commit is contained in:
Kristian Høgsberg 2008-11-02 15:28:22 -05:00
parent 5a27f3e6a7
commit d3fa34ca29
2 changed files with 28 additions and 6 deletions

View file

@ -21,7 +21,7 @@ flower_objs = flower.o
pointer_objs = pointer.o
$(clients) : CFLAGS += $(shell pkg-config --cflags cairo)
$(clients) : LDLIBS += $(shell pkg-config --libs cairo)
$(clients) : LDLIBS += $(shell pkg-config --libs cairo) -lrt
define client_template
$(1): $$($(1)_objs) libwayland.so