simple-touch: Update to enter/leave changes

dev
Kristian Høgsberg 13 years ago
parent 5e7e6f2a22
commit dd631c1c36
  1. 25
      clients/simple-touch.c
  2. 2
      src/compositor.c

@ -118,7 +118,7 @@ input_device_handle_key(void *data, struct wl_input_device *input_device,
}
static void
input_device_handle_pointer_focus(void *data,
input_device_handle_pointer_enter(void *data,
struct wl_input_device *input_device,
uint32_t time, struct wl_surface *surface,
int32_t sx, int32_t sy)
@ -126,7 +126,14 @@ input_device_handle_pointer_focus(void *data,
}
static void
input_device_handle_keyboard_focus(void *data,
input_device_handle_pointer_leave(void *data,
struct wl_input_device *input_device,
uint32_t time, struct wl_surface *surface)
{
}
static void
input_device_handle_keyboard_enter(void *data,
struct wl_input_device *input_device,
uint32_t time,
struct wl_surface *surface,
@ -134,6 +141,14 @@ input_device_handle_keyboard_focus(void *data,
{
}
static void
input_device_handle_keyboard_leave(void *data,
struct wl_input_device *input_device,
uint32_t time,
struct wl_surface *surface)
{
}
static void
touch_paint(struct touch *touch, int32_t x, int32_t y, int32_t id)
{
@ -213,8 +228,10 @@ static const struct wl_input_device_listener input_device_listener = {
input_device_handle_motion,
input_device_handle_button,
input_device_handle_key,
input_device_handle_pointer_focus,
input_device_handle_keyboard_focus,
input_device_handle_pointer_enter,
input_device_handle_pointer_leave,
input_device_handle_keyboard_enter,
input_device_handle_keyboard_leave,
input_device_handle_touch_down,
input_device_handle_touch_up,
input_device_handle_touch_motion,

@ -631,7 +631,7 @@ destroy_surface(struct wl_resource *resource)
pixman_region32_fini(&surface->transform.boundingbox);
pixman_region32_fini(&surface->damage);
pixman_region32_fini(&surface->opaque);
if (!region_is_undefined(&surface->input)
if (!region_is_undefined(&surface->input))
pixman_region32_fini(&surface->input);
free(surface);

Loading…
Cancel
Save