From 43788b13df4d00ab5b030116e414a1dafa79d50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 28 Jul 2010 23:50:12 -0400 Subject: [PATCH] Update keyboard focus handler signatures --- clients/gears.c | 2 +- clients/image.c | 5 +++-- clients/terminal.c | 2 +- clients/view.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/clients/gears.c b/clients/gears.c index 073eee1c..7d97e23b 100644 --- a/clients/gears.c +++ b/clients/gears.c @@ -309,7 +309,7 @@ resize_handler(struct window *window, void *data) static void keyboard_focus_handler(struct window *window, - struct wl_input_device *device, void *data) + struct input *device, void *data) { struct gears *gears = data; diff --git a/clients/image.c b/clients/image.c index c8de5e65..fa235207 100644 --- a/clients/image.c +++ b/clients/image.c @@ -190,7 +190,7 @@ redraw_handler(struct window *window, void *data) static void keyboard_focus_handler(struct window *window, - struct wl_input_device *device, void *data) + struct input *device, void *data) { struct image *image = data; @@ -224,7 +224,8 @@ image_create(struct display *display, uint32_t key, const char *filename) window_set_user_data(image->window, image); window_set_redraw_handler(image->window, redraw_handler); - window_set_keyboard_focus_handler(image->window, keyboard_focus_handler); + window_set_keyboard_focus_handler(image->window, + keyboard_focus_handler); image_draw(image); diff --git a/clients/terminal.c b/clients/terminal.c index 5fe0d217..1bb496dd 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -441,7 +441,7 @@ key_handler(struct window *window, uint32_t key, uint32_t sym, static void keyboard_focus_handler(struct window *window, - struct wl_input_device *device, void *data) + struct input *device, void *data) { struct terminal *terminal = data; diff --git a/clients/view.c b/clients/view.c index e0903bf8..0c8ce5ad 100644 --- a/clients/view.c +++ b/clients/view.c @@ -148,7 +148,7 @@ key_handler(struct window *window, uint32_t key, uint32_t unicode, static void keyboard_focus_handler(struct window *window, - struct wl_input_device *device, void *data) + struct input *device, void *data) { struct view *view = data;