summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlshellsurface.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-04-13 13:58:05 +0300
committerJørgen Lind <jorgen.lind@nokia.com>2012-04-17 13:12:02 +0200
commit56758f210dc090d9b306d20c221fdc35f3b3a917 (patch)
treef25eb1c5d74058b243e3fa83bc2c5097c8486d02 /src/compositor/wayland_wrapper/wlshellsurface.h
parent6ec82c38f0ed751d2e7c67c0732d2d5c043c4a84 (diff)
Decorations: Make it possible to move windows with transient parent
This was not working previously due to not updating the offset. Change-Id: I0a8db17a1eabeb6139129386675b271f9e1b8f22 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlshellsurface.h')
-rw-r--r--src/compositor/wayland_wrapper/wlshellsurface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/wlshellsurface.h b/src/compositor/wayland_wrapper/wlshellsurface.h
index dc6491471..1cdb6f42d 100644
--- a/src/compositor/wayland_wrapper/wlshellsurface.h
+++ b/src/compositor/wayland_wrapper/wlshellsurface.h
@@ -44,6 +44,7 @@
#include "waylandobject.h"
#include <wayland-server.h>
+#include <QPoint>
namespace Wayland {
@@ -78,11 +79,13 @@ public:
Surface *surface() const;
void adjustPosInResize();
- void adjustPosToTransientParent();
+ QPointF adjustedPosToTransientParent() const;
void resetResizeGrabber();
void resetMoveGrabber();
ShellSurface *transientParent() const;
+ void setOffset(const QPointF &offset);
+
private:
struct wl_resource *m_shellSurface;
Surface *m_surface;