summaryrefslogtreecommitdiff
path: root/src/compositor/compositor_api/qwaylandinput.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@theqtcompany.com>2015-05-07 17:10:07 +0200
committerJørgen Lind <jorgen.lind@theqtcompany.com>2015-08-28 13:09:42 +0200
commit65800110cb5887c1c110d44307d90c89d708bf9a (patch)
treef8eb59adc56fd8a2f433f1b73047570ff3345795 /src/compositor/compositor_api/qwaylandinput.h
parent8ea41bfe32de3b4dd4c15ec91c8925b1c6508c53 (diff)
downloadqtwayland-65800110cb5887c1c110d44307d90c89d708bf9a.tar.gz
Mouse mouseFocus handling to the QWaylandInputDevice
This because both the touch interface and pointer interface depends on it Change-Id: I64718e0db87085c656250a22107715ddb68bc9ae
Diffstat (limited to 'src/compositor/compositor_api/qwaylandinput.h')
-rw-r--r--src/compositor/compositor_api/qwaylandinput.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compositor/compositor_api/qwaylandinput.h b/src/compositor/compositor_api/qwaylandinput.h
index 84a630f4..786eeb46 100644
--- a/src/compositor/compositor_api/qwaylandinput.h
+++ b/src/compositor/compositor_api/qwaylandinput.h
@@ -106,7 +106,6 @@ public:
void sendMouseReleaseEvent(Qt::MouseButton button);
void sendMouseMoveEvent(QWaylandSurfaceView *surface , const QPointF &localPos, const QPointF &globalPos = QPointF());
void sendMouseWheelEvent(Qt::Orientation orientation, int delta);
- void sendResetCurrentMouseView();
void sendKeyPressEvent(uint code);
void sendKeyReleaseEvent(uint code);
@@ -122,6 +121,8 @@ public:
QWaylandPointer *pointer() const;
+ //Normally set by the mouse device,
+ //But can be set manually for use with touch or can reset unset the current mouse focus;
QWaylandSurfaceView *mouseFocus() const;
void setMouseFocus(QWaylandSurfaceView *view);
@@ -144,7 +145,7 @@ public:
virtual bool isOwner(QInputEvent *inputEvent) const;
Q_SIGNALS:
- void mouseFocusChanged();
+ void mouseFocusChanged(QWaylandSurfaceView *newFocus, QWaylandSurfaceView *oldFocus);
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QWaylandInputDevice::CapabilityFlags)