diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-03 12:11:33 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-04 16:12:47 +0200 |
commit | c4f2c0479fd992183ce04347111c5968dfd961bc (patch) | |
tree | 357f5d7878373349cee8b093bf1d0f9d9825cda8 /src/compositor/compositor_api/qwaylandcompositor_p.h | |
parent | 5addf79903a9007cfb65ad09e46d2c47f4a2cc37 (diff) |
Add way for classes to get polish events on compositor initiazliation
When the compositor has been created the wl_display and registry has
been initialized. When this is done other globals can be created.
Change-Id: Ifb8a0757877963a35bfa2a896ddb8f28a0b69d64
Diffstat (limited to 'src/compositor/compositor_api/qwaylandcompositor_p.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandcompositor_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandcompositor_p.h b/src/compositor/compositor_api/qwaylandcompositor_p.h index a73956d43..2fcbb290c 100644 --- a/src/compositor/compositor_api/qwaylandcompositor_p.h +++ b/src/compositor/compositor_api/qwaylandcompositor_p.h @@ -93,6 +93,8 @@ public: inline void addClient(QWaylandClient *client); inline void removeClient(QWaylandClient *client); + + void addPolishObject(QObject *object); protected: void compositor_create_surface(Resource *resource, uint32_t id) Q_DECL_OVERRIDE; void compositor_create_region(Resource *resource, uint32_t id) Q_DECL_OVERRIDE; @@ -133,6 +135,7 @@ protected: bool retainSelection; bool initialized; + QList<QPointer<QObject> > polish_objects; Q_DECLARE_PUBLIC(QWaylandCompositor) Q_DISABLE_COPY(QWaylandCompositorPrivate) |