summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandwlshell.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@theqtcompany.com>2016-03-19 15:32:11 +0100
committerGiulio Camuffo <giulio.camuffo@kdab.com>2016-04-11 06:20:41 +0000
commit0b16a83b9d292d98d0ef6d2541af0eb58a8504f2 (patch)
treee7d0af6e4ec0fa5f1ab5fd131033938d259588a3 /src/compositor/extensions/qwaylandwlshell.h
parentf430e84e0642b5eec0b6069dadd8317d880932cc (diff)
Create a fallback shellSurface in wl_shell::get_shell_surface
This makes QWaylandShellPrivate::shell_get_shell_surface behave similarly to QWaylandCompositorPrivate::compositor_create_surface. First, a signal is emitted letting a compositor implementation create its own subclass of QWaylandShellSurface if desired. If it's not created, a plain QWaylandShellSurface is created instead. It also makes the API more consistent, as the creation of shell surfaces now mimick the creation of surfaces and xdg surfaces. qwindow-compositor has been updated to take advantage of the new API Change-Id: I7c7262dd253dc37843e8e471a4ead5f6e87b0ced Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/compositor/extensions/qwaylandwlshell.h')
-rw-r--r--src/compositor/extensions/qwaylandwlshell.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandwlshell.h b/src/compositor/extensions/qwaylandwlshell.h
index 2420f4cd0..12905549e 100644
--- a/src/compositor/extensions/qwaylandwlshell.h
+++ b/src/compositor/extensions/qwaylandwlshell.h
@@ -51,6 +51,7 @@ class QWaylandClient;
class QWaylandInputDevice;
class QWaylandOutput;
class QWaylandSurfaceRole;
+class QWaylandWlShellSurface;
class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandWlShell : public QWaylandExtensionTemplate<QWaylandWlShell>
{
@@ -67,6 +68,7 @@ public:
Q_SIGNALS:
void createShellSurface(QWaylandSurface *surface, const QWaylandResource &resource);
+ void shellSurfaceCreated(QWaylandWlShellSurface *shellSurface);
};
class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandWlShellSurface : public QWaylandExtensionTemplate<QWaylandWlShellSurface>