aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2016-10-18 16:22:57 +0200
committerMartin Gräßlin <[email protected]>2016-10-18 16:25:36 +0200
commitf4627e38f18273ad61a30bc83abf95b5bab5b492 (patch)
treea89715aa3f29e3b60cfa7272f5d61505f8cc5706
parent1708278a451e6dab92549f9cabe6ad13ea3b4ba2 (diff)
Expose GLRenderTarget::virtualScreenGeometry
Summary: A simple way to get the current per-output geometry. It's also needed by effects using render targets. Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D3100
-rw-r--r--libkwineffects/kwinglutils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libkwineffects/kwinglutils.h b/libkwineffects/kwinglutils.h
index 6e386a7..6e1b437 100644
--- a/libkwineffects/kwinglutils.h
+++ b/libkwineffects/kwinglutils.h
@@ -515,12 +515,23 @@ public:
* Sets the virtual screen geometry to @p g.
* This is the geometry of the OpenGL window currently being rendered to
* in the virtual geometry space the rendering geometries use.
+ * @see virtualScreenGeometry
* @since 5.9
**/
static void setVirtualScreenGeometry(const QRect &g) {
s_virtualScreenGeometry = g;
}
+ /**
+ * The geometry of the OpenGL window currently being rendered to
+ * in the virtual geometry space the rendering system uses.
+ * @see setVirtualScreenGeometry
+ * @since 5.9
+ **/
+ static QRect virtualScreenGeometry() {
+ return s_virtualScreenGeometry;
+ }
+
protected:
void initFBO();