Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | #include <QElapsedTimer> | 28 | #include <QElapsedTimer> | ||
29 | #include <QObject> | 29 | #include <QObject> | ||
30 | #include <QPointer> | 30 | #include <QPointer> | ||
31 | #include <QPointF> | 31 | #include <QPointF> | ||
32 | 32 | | |||
33 | class QWindow; | 33 | class QWindow; | ||
34 | 34 | | |||
35 | namespace KWayland | 35 | namespace KWaylandServer | ||
36 | { | | |||
37 | namespace Server | | |||
38 | { | 36 | { | ||
39 | class SurfaceInterface; | 37 | class SurfaceInterface; | ||
40 | } | 38 | } | ||
41 | } | | |||
42 | 39 | | |||
43 | namespace KWin | 40 | namespace KWin | ||
44 | { | 41 | { | ||
45 | class CursorImage; | 42 | class CursorImage; | ||
46 | class InputRedirection; | 43 | class InputRedirection; | ||
47 | class Toplevel; | 44 | class Toplevel; | ||
48 | class WaylandCursorTheme; | 45 | class WaylandCursorTheme; | ||
49 | class CursorShape; | 46 | class CursorShape; | ||
▲ Show 20 Lines • Show All 102 Lines • ▼ Show 20 Line(s) | 145 | private: | |||
152 | void focusUpdate(Toplevel *focusOld, Toplevel *focusNow) override; | 149 | void focusUpdate(Toplevel *focusOld, Toplevel *focusNow) override; | ||
153 | 150 | | |||
154 | QPointF position() const override; | 151 | QPointF position() const override; | ||
155 | 152 | | |||
156 | void updateOnStartMoveResize(); | 153 | void updateOnStartMoveResize(); | ||
157 | void updateToReset(); | 154 | void updateToReset(); | ||
158 | void updatePosition(const QPointF &pos); | 155 | void updatePosition(const QPointF &pos); | ||
159 | void updateButton(uint32_t button, InputRedirection::PointerButtonState state); | 156 | void updateButton(uint32_t button, InputRedirection::PointerButtonState state); | ||
160 | void warpXcbOnSurfaceLeft(KWayland::Server::SurfaceInterface *surface); | 157 | void warpXcbOnSurfaceLeft(KWaylandServer::SurfaceInterface *surface); | ||
161 | QPointF applyPointerConfinement(const QPointF &pos) const; | 158 | QPointF applyPointerConfinement(const QPointF &pos) const; | ||
162 | void disconnectConfinedPointerRegionConnection(); | 159 | void disconnectConfinedPointerRegionConnection(); | ||
163 | void disconnectLockedPointerAboutToBeUnboundConnection(); | 160 | void disconnectLockedPointerAboutToBeUnboundConnection(); | ||
164 | void disconnectPointerConstraintsConnection(); | 161 | void disconnectPointerConstraintsConnection(); | ||
165 | void breakPointerConstraints(KWayland::Server::SurfaceInterface *surface); | 162 | void breakPointerConstraints(KWaylandServer::SurfaceInterface *surface); | ||
166 | CursorImage *m_cursor; | 163 | CursorImage *m_cursor; | ||
167 | bool m_supportsWarping; | 164 | bool m_supportsWarping; | ||
168 | QPointF m_pos; | 165 | QPointF m_pos; | ||
169 | QHash<uint32_t, InputRedirection::PointerButtonState> m_buttons; | 166 | QHash<uint32_t, InputRedirection::PointerButtonState> m_buttons; | ||
170 | Qt::MouseButtons m_qtButtons; | 167 | Qt::MouseButtons m_qtButtons; | ||
171 | QMetaObject::Connection m_focusGeometryConnection; | 168 | QMetaObject::Connection m_focusGeometryConnection; | ||
172 | QMetaObject::Connection m_internalWindowConnection; | 169 | QMetaObject::Connection m_internalWindowConnection; | ||
173 | QMetaObject::Connection m_constraintsConnection; | 170 | QMetaObject::Connection m_constraintsConnection; | ||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |