mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-09 13:29:48 -05:00
Consolidate 'sync' and 'frame' events into just one 'key' event
This commit is contained in:
parent
ac93a3d3d7
commit
c1ad1f9c9b
3 changed files with 26 additions and 41 deletions
|
|
@ -305,7 +305,7 @@ static void
|
|||
display_sync(struct wl_client *client,
|
||||
struct wl_display *display, uint32_t key)
|
||||
{
|
||||
wl_client_post_event(client, &display->base, WL_DISPLAY_SYNC, key);
|
||||
wl_client_post_event(client, &display->base, WL_DISPLAY_KEY, key, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -421,7 +421,7 @@ wl_display_post_frame(struct wl_display *display, uint32_t time)
|
|||
|
||||
wl_list_for_each_safe(listener, next, &display->frame_list, link) {
|
||||
wl_client_post_event(listener->client, &display->base,
|
||||
WL_DISPLAY_FRAME, listener->key, time);
|
||||
WL_DISPLAY_KEY, listener->key, time);
|
||||
wl_resource_destroy(&listener->resource, listener->client);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue