From 66e41e57a8a49a7f201e0196d995a4d3f0c3a6f8 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 8 May 2012 12:41:30 +0300 Subject: [PATCH] Update to wayland head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie012861bc40e3bc448d85c9d8c27f798434020ed Reviewed-by: Samuel Rødal --- tests/auto/wayland/mockshell.cpp | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/tests/auto/wayland/mockshell.cpp b/tests/auto/wayland/mockshell.cpp index f11a5303354..cfc439063b2 100644 --- a/tests/auto/wayland/mockshell.cpp +++ b/tests/auto/wayland/mockshell.cpp @@ -43,6 +43,15 @@ namespace Impl { +void shell_surface_pong(wl_client *client, + wl_resource *surface_resource, + uint32_t serial) +{ + Q_UNUSED(client); + Q_UNUSED(surface_resource); + Q_UNUSED(serial); +} + void shell_surface_move(wl_client *client, wl_resource *surface_resource, wl_resource *input_device_resource, @@ -129,16 +138,37 @@ void shell_surface_set_maximized(wl_client *client, Q_UNUSED(output); } +void shell_surface_set_title(wl_client *client, + wl_resource *surface_resource, + const char *title) +{ + Q_UNUSED(client); + Q_UNUSED(surface_resource); + Q_UNUSED(title); +} + +void shell_surface_set_class(wl_client *client, + wl_resource *surface_resource, + const char *class_) +{ + Q_UNUSED(client); + Q_UNUSED(surface_resource); + Q_UNUSED(class_); +} + static void get_shell_surface(wl_client *client, wl_resource *compositorResource, uint32_t id, wl_resource *surfaceResource) { static const struct wl_shell_surface_interface shellSurfaceInterface = { + shell_surface_pong, shell_surface_move, shell_surface_resize, shell_surface_set_toplevel, shell_surface_set_transient, shell_surface_set_fullscreen, shell_surface_set_popup, - shell_surface_set_maximized + shell_surface_set_maximized, + shell_surface_set_title, + shell_surface_set_class }; Q_UNUSED(compositorResource);