summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlcompositor.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-02-29 16:36:05 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-03-05 08:55:30 +0100
commitd36a08d97f03888ffcb77950708195474e7e30d9 (patch)
treeef8804d51b56393565f5284c0236e009f6a7fafd /src/compositor/wayland_wrapper/wlcompositor.cpp
parentedd424d1ed41434f979abe42428ed74c664d59a2 (diff)
Upgrade to newer wayland SHA-1.
Change-Id: If0c1d86a3011e266cafabeb875bc5616191a8cf4 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlcompositor.cpp')
-rw-r--r--src/compositor/wayland_wrapper/wlcompositor.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/wlcompositor.cpp b/src/compositor/wayland_wrapper/wlcompositor.cpp
index 46bb1138f..6cd9a3dcb 100644
--- a/src/compositor/wayland_wrapper/wlcompositor.cpp
+++ b/src/compositor/wayland_wrapper/wlcompositor.cpp
@@ -53,6 +53,7 @@
#include "wlshellsurface.h"
#include "wltouch.h"
#include "wlinputdevice.h"
+#include "wlregion.h"
#include <QWindow>
#include <QSocketNotifier>
@@ -89,8 +90,16 @@ void compositor_create_surface(struct wl_client *client,
static_cast<Compositor *>(resource->data)->createSurface(client,id);
}
+void compositor_create_region(struct wl_client *client,
+ struct wl_resource *compositor, uint32_t id)
+{
+ Q_UNUSED(compositor);
+ new Region(client, id);
+}
+
const static struct wl_compositor_interface compositor_interface = {
- compositor_create_surface
+ compositor_create_surface,
+ compositor_create_region
};
void Compositor::bind_func(struct wl_client *client, void *data,