mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-06 16:31:08 +00:00
clients/window: Bump xdg-shell version to latest
It seems we've missed an update from 3 to 4 (bounds events). With it, this updates to version 5 which sends the capabilities event. Stubs, as we're not using them. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
a8048c5c1c
commit
6744a6278e
|
@ -4206,9 +4206,24 @@ xdg_toplevel_handle_close(void *data, struct xdg_toplevel *xdg_surface)
|
|||
window_close(window);
|
||||
}
|
||||
|
||||
static void
|
||||
xdg_toplevel_handle_configure_bounds(void *data, struct xdg_toplevel *xdg_toplevel,
|
||||
int32_t width, int32_t height)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
xdg_toplevel_handle_wm_capabilities(void *data, struct xdg_toplevel *xdg_toplevel,
|
||||
struct wl_array *caps)
|
||||
{
|
||||
}
|
||||
|
||||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||
xdg_toplevel_handle_configure,
|
||||
xdg_toplevel_handle_close,
|
||||
xdg_toplevel_handle_configure_bounds,
|
||||
xdg_toplevel_handle_wm_capabilities,
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -5849,7 +5864,8 @@ registry_handle_global(void *data, struct wl_registry *registry, uint32_t id,
|
|||
display_add_data_device(d, id, version);
|
||||
} else if (strcmp(interface, "xdg_wm_base") == 0) {
|
||||
d->xdg_shell = wl_registry_bind(registry, id,
|
||||
&xdg_wm_base_interface, 1);
|
||||
&xdg_wm_base_interface,
|
||||
MIN(version, 5));
|
||||
xdg_wm_base_add_listener(d->xdg_shell, &wm_base_listener, d);
|
||||
} else if (strcmp(interface, "text_cursor_position") == 0) {
|
||||
d->text_cursor_position =
|
||||
|
|
Loading…
Reference in a new issue