6#ifndef POINTERCONSTRAINTSTEST_H
7#define POINTERCONSTRAINTSTEST_H
19class ConnectionThread;
61 return m_errorsAllowed;
65 if (m_errorsAllowed == set) {
68 m_errorsAllowed = set;
72 Q_INVOKABLE
virtual void lockRequest(
bool persistent =
true, QRect region = QRect())
79 Q_INVOKABLE
virtual void confineRequest(
bool persistent =
true, QRect region = QRect())
118 bool m_lockHint =
true;
119 bool m_errorsAllowed =
false;
128 void init(QQuickView *
view)
override;
130 void lockRequest(
bool persistent, QRect region)
override;
137 void setupRegistry(KWayland::Client::Registry *registry);
143 void cleanupConfine();
145 KWayland::Client::ConnectionThread *m_connectionThreadObject;
146 KWayland::Client::Compositor *m_compositor =
nullptr;
147 KWayland::Client::Seat *m_seat =
nullptr;
148 KWayland::Client::Pointer *m_pointer =
nullptr;
149 KWayland::Client::PointerConstraints *m_pointerConstraints =
nullptr;
151 KWayland::Client::LockedPointer *m_lockedPointer =
nullptr;
152 bool m_lockedPointerPersistent =
false;
153 KWayland::Client::ConfinedPointer *m_confinedPointer =
nullptr;
154 bool m_confinedPointerPersistent =
false;
161 XBackend(QObject *parent =
nullptr);
163 void init(QQuickView *
view)
override;
165 void lockRequest(
bool persistent, QRect region)
override;
175 bool tryConfine(
int &error);
176 xcb_connection_t *m_xcbConn =
nullptr;
QQuickView * view() const
bool errorsAllowed() const
virtual Q_INVOKABLE void unconfineRequest()
void lockChanged(bool locked)
virtual Q_INVOKABLE void hideAndConfineRequest(bool confineBeforeHide=false)
void errorsAllowedChanged()
Backend(QObject *parent=nullptr)
void forceSurfaceCommit()
virtual Q_INVOKABLE void confineRequest(bool persistent=true, QRect region=QRect())
virtual void init(QQuickView *view)
void setErrorsAllowed(bool set)
virtual Q_INVOKABLE void unlockRequest()
void confineChanged(bool confined)
virtual Q_INVOKABLE void lockRequest(bool persistent=true, QRect region=QRect())
virtual Q_INVOKABLE void undoHideRequest()
The Client class encapsulates a window decoration frame.
void confineRequest(bool persistent, QRect region) override
void init(QQuickView *view) override
void unlockRequest() override
WaylandBackend(QObject *parent=nullptr)
void unconfineRequest() override
void lockRequest(bool persistent, QRect region) override
void undoHideRequest() override
void unlockRequest() override
void confineRequest(bool persistent, QRect region) override
void init(QQuickView *view) override
void unconfineRequest() override
XBackend(QObject *parent=nullptr)
void hideAndConfineRequest(bool confineBeforeHide) override
void lockRequest(bool persistent, QRect region) override