mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-14 06:59:46 -05:00
Add keyboard and pointer focus events.
This commit is contained in:
parent
ce5a9c1096
commit
db6c2f3f0e
5 changed files with 81 additions and 7 deletions
16
window.c
16
window.c
|
|
@ -475,10 +475,26 @@ window_handle_key(void *data, struct wl_input_device *input_device,
|
|||
state, window->modifiers, window->user_data);
|
||||
}
|
||||
|
||||
static void
|
||||
window_handle_pointer_focus(void *data,
|
||||
struct wl_input_device *input_device,
|
||||
struct wl_surface *surface)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
window_handle_keyboard_focus(void *data,
|
||||
struct wl_input_device *input_device,
|
||||
struct wl_surface *surface)
|
||||
{
|
||||
}
|
||||
|
||||
static const struct wl_input_device_listener input_device_listener = {
|
||||
window_handle_motion,
|
||||
window_handle_button,
|
||||
window_handle_key,
|
||||
window_handle_pointer_focus,
|
||||
window_handle_keyboard_focus,
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue