weston/src
Kristian Høgsberg 7dbf5e2ea7 compositor: Only process input once per frame
When we're repainting, there's no point in polling for input events.
We just read input events once before each repaint and send out events
as needed.  The input events come with an accurate timestamp, so this
doesn't affect the timing information and client should always look at
the event timestamps if they're trying to determine pointer motion
speed or double click speed.  If we go idle (stop repainting) we add the
input devices back into the primary main loop and wait for the next event.

This avoids waking up the compositor separately (one or more times per
frame) to handle input events.  We also avoid updating cursor position
and other compositor state after the client has rendered its new
frame, reducing lag between what the client renders and the pointer
position.
2012-03-05 19:50:15 -05:00
..
.gitignore update git ignores 2012-01-27 10:44:22 +02:00
compositor-drm.c compositor: Store opaque clip for previous frame in weston_surface 2012-03-01 12:47:23 -05:00
compositor-openwfd.c compositor: add dpms and backlight support 2012-02-29 14:01:56 -05:00
compositor-wayland.c compositor: Store opaque clip for previous frame in weston_surface 2012-03-01 12:47:23 -05:00
compositor-x11.c compositor: Store opaque clip for previous frame in weston_surface 2012-03-01 12:47:23 -05:00
compositor.c compositor: Only process input once per frame 2012-03-05 19:50:15 -05:00
compositor.h compositor: Move input devices to their own event loop 2012-03-05 18:06:08 -05:00
evdev.c compositor: Move input devices to their own event loop 2012-03-05 18:06:08 -05:00
evdev.h Rename wayland-compositor to weston 2012-01-03 11:04:04 -05:00
hash.c Rename wayland-compositor to weston 2012-01-03 11:04:04 -05:00
hash.h Rename wayland-compositor to weston 2012-01-03 11:04:04 -05:00
image-loader.c Fix a few missing wlsc->weston renames 2012-01-03 11:40:25 -05:00
libbacklight.c compositor-drm: fix libbacklight build 2012-03-04 22:00:02 -05:00
libbacklight.h compositor-drm: Just pull in libbacklight source for now 2012-02-29 14:23:51 -05:00
Makefile.am compositor-drm: Just pull in libbacklight source for now 2012-02-29 14:23:51 -05:00
matrix.c compositor: simplify the matrix inversion API 2012-01-27 10:44:22 +02:00
matrix.h compositor: simplify the matrix inversion API 2012-01-27 10:44:22 +02:00
screenshooter.c Merge remote-tracking branch 'pq/compositor-dtors-v1' 2012-01-03 11:36:37 -05:00
shell.c compositor: Swallow binding key for bindings that don't set up a grab 2012-03-05 17:47:15 -05:00
tablet-shell.c Use typesafe server-side stubs 2012-03-04 21:57:37 -05:00
tty.c Revert "weston: Drop priviledges early, and seteuid when needed" 2012-01-24 12:41:19 -05:00
util.c compositor: Swallow binding key for bindings that don't set up a grab 2012-03-05 17:47:15 -05:00
xserver-launcher.c Use typesafe server-side stubs 2012-03-04 21:57:37 -05:00