diff options
Diffstat (limited to 'src/compositor/compositor_api')
-rw-r--r-- | src/compositor/compositor_api/waylandsurface.cpp | 6 | ||||
-rw-r--r-- | src/compositor/compositor_api/waylandsurface.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/waylandsurface.cpp b/src/compositor/compositor_api/waylandsurface.cpp index 33032e034..972ae451b 100644 --- a/src/compositor/compositor_api/waylandsurface.cpp +++ b/src/compositor/compositor_api/waylandsurface.cpp @@ -311,6 +311,12 @@ void WaylandSurface::sendOnScreenVisibilityChange(bool visible) d->surface->extendedSurface()->sendOnScreenVisibility(visible); } +QString WaylandSurface::className() const +{ + Q_D(const WaylandSurface); + return d->surface->className(); +} + QString WaylandSurface::title() const { Q_D(const WaylandSurface); diff --git a/src/compositor/compositor_api/waylandsurface.h b/src/compositor/compositor_api/waylandsurface.h index 6cfe084a9..ff3eb47fa 100644 --- a/src/compositor/compositor_api/waylandsurface.h +++ b/src/compositor/compositor_api/waylandsurface.h @@ -74,6 +74,7 @@ class Q_COMPOSITOR_EXPORT WaylandSurface : public QObject Q_PROPERTY(QPointF pos READ pos WRITE setPos NOTIFY posChanged) Q_PROPERTY(WaylandSurface::WindowFlags windowFlags READ windowFlags NOTIFY windowFlagsChanged) Q_PROPERTY(Qt::ScreenOrientation contentOrientation READ contentOrientation NOTIFY contentOrientationChanged) + Q_PROPERTY(QString className READ className NOTIFY classNameChanged) Q_PROPERTY(QString title READ title NOTIFY titleChanged) Q_PROPERTY(Qt::ScreenOrientations orientationUpdateMask READ orientationUpdateMask NOTIFY orientationUpdateMaskChanged) @@ -146,6 +147,8 @@ public: WaylandCompositor *compositor() const; + QString className() const; + QString title() const; bool transientInactive() const; @@ -162,6 +165,7 @@ signals: void contentOrientationChanged(); void orientationUpdateMaskChanged(); void extendedSurfaceReady(); + void classNameChanged(); void titleChanged(); }; |