summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wloutput.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-02-13 20:39:22 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-02-14 09:55:02 +0100
commit2ed43741ab4106c6a1e9eb3a5cb9a6c5ff34f450 (patch)
tree305297d6f665d3f43ef131f5f5577262fa325303 /src/compositor/wayland_wrapper/wloutput.h
parentb61d1417dc81761276b3bac44775141b3551ef4e (diff)
Added convenience properties in WaylandSurface for window orientation.
The new windowRotation property is especially useful for the compositor to know how much the surface needs to be rotated in order to be displayed correctly. Change-Id: I81ee17880ceafd465c39b4439dee978f2cb80924 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wloutput.h')
-rw-r--r--src/compositor/wayland_wrapper/wloutput.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wloutput.h b/src/compositor/wayland_wrapper/wloutput.h
index f678547a2..b637d2d3f 100644
--- a/src/compositor/wayland_wrapper/wloutput.h
+++ b/src/compositor/wayland_wrapper/wloutput.h
@@ -57,6 +57,7 @@ public:
OutputGlobal();
void setGeometry(const QRect &geometry);
+ QRect geometry() const { return m_geometry; }
int x() const { return m_geometry.x(); }
int y() const { return m_geometry.y(); }