Feed motion events through compositor.

This lets us pass events only to the window that we're mousing over
and we can now transform input events back to the window coordinate space.
This commit is contained in:
Kristian Høgsberg 2008-12-10 10:42:04 -05:00
parent 201a904889
commit 715a081cf4
3 changed files with 55 additions and 31 deletions

View file

@ -135,6 +135,11 @@ wl_display_post_key_event(struct wl_display *display,
void
wl_display_post_frame(struct wl_display *display,
uint32_t frame, uint32_t msecs);
void
wl_display_post_surface_motion(struct wl_display *display,
struct wl_surface *surface,
struct wl_object *source,
int x, int y, int sx, int sy);
struct wl_compositor {
const struct wl_compositor_interface *interface;