mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-26 06:59:58 -05:00
Pass timestamp in surface destroy callback
This commit is contained in:
parent
02ef1c1aca
commit
4685fa324f
3 changed files with 8 additions and 14 deletions
|
|
@ -319,27 +319,23 @@ wl_client_destroy(struct wl_client *client)
|
|||
|
||||
static void
|
||||
lose_pointer_focus(struct wl_listener *listener,
|
||||
struct wl_surface *surface)
|
||||
struct wl_surface *surface, uint32_t time)
|
||||
{
|
||||
struct wl_input_device *device =
|
||||
container_of(listener, struct wl_input_device,
|
||||
pointer_focus_listener);
|
||||
uint32_t time;
|
||||
|
||||
time = wl_display_get_time(wl_client_get_display(surface->client));
|
||||
wl_input_device_set_pointer_focus(device, NULL, time, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
lose_keyboard_focus(struct wl_listener *listener,
|
||||
struct wl_surface *surface)
|
||||
struct wl_surface *surface, uint32_t time)
|
||||
{
|
||||
struct wl_input_device *device =
|
||||
container_of(listener, struct wl_input_device,
|
||||
keyboard_focus_listener);
|
||||
uint32_t time;
|
||||
|
||||
time = wl_display_get_time(wl_client_get_display(surface->client));
|
||||
wl_input_device_set_keyboard_focus(device, NULL, time);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ struct wl_buffer {
|
|||
struct wl_listener {
|
||||
struct wl_list link;
|
||||
void (*func)(struct wl_listener *listener,
|
||||
struct wl_surface *surface);
|
||||
struct wl_surface *surface, uint32_t time);
|
||||
};
|
||||
|
||||
struct wl_surface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue