Commit 7cd58b27 authored by Martin Flöser's avatar Martin Flöser
Browse files

[server] Implement raise/lower in QtExtendedSurfaceInterface

parent cfd0227a
......@@ -151,15 +151,13 @@ const struct qt_extended_surface_interface QtExtendedSurfaceInterface::Private::
void QtExtendedSurfaceInterface::Private::lowerCallback(wl_client *client, wl_resource *resource)
{
Q_UNUSED(client)
Q_UNUSED(resource)
// ignore
emit cast<Private>(resource)->q_func()->lowerRequested();
}
void QtExtendedSurfaceInterface::Private::raiseCallback(wl_client *client, wl_resource *resource)
{
Q_UNUSED(client)
Q_UNUSED(resource)
// ignore
emit cast<Private>(resource)->q_func()->raiseRequested();
}
void QtExtendedSurfaceInterface::Private::setContentOrientationMaskCallback(wl_client *client, wl_resource *resource, int32_t orientation)
......
......@@ -65,6 +65,18 @@ public:
void close();
Q_SIGNALS:
/**
* Requests that the window be raised to appear above other windows.
* @since 5.5
**/
void raiseRequested();
/**
* Requests that the window be lowered to appear below other windows.
* @since 5.5
**/
void lowerRequested();
private:
friend class QtSurfaceExtensionInterface;
explicit QtExtendedSurfaceInterface(QtSurfaceExtensionInterface *shell, SurfaceInterface *parent, wl_resource *parentResource);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment