summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsscreen.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2013-02-20 08:17:35 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-06 11:00:23 +0200
commit785edaa09d6e57aa8ab02a87ab00d9347818c615 (patch)
treed1f5dc7a6765c1d164da23dcc1b06fcffb5c150a /src/plugins/platforms/eglfs/qeglfsscreen.h
parent888bfb09da4367a2eebe41a1a086a802449d2af6 (diff)
Made EGLFS handle multiple surfaces with more grace.
Prevents crashing when some menu or similar is shown, although the visual result might not be ideal. Task-number: QTBUG-29729 Change-Id: Ia840b3ec17f5ef30ee58150bd2f807ca5e72cc12 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsscreen.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.h b/src/plugins/platforms/eglfs/qeglfsscreen.h
index 298a67cd3a..b04c85797f 100644
--- a/src/plugins/platforms/eglfs/qeglfsscreen.h
+++ b/src/plugins/platforms/eglfs/qeglfsscreen.h
@@ -69,9 +69,16 @@ public:
QPlatformCursor *cursor() const;
EGLDisplay display() const { return m_dpy; }
+ EGLSurface primarySurface() const { return m_surface; }
+
+protected:
+ void setPrimarySurface(EGLSurface surface);
private:
+ friend class QEglFSWindow;
+
EGLDisplay m_dpy;
+ EGLSurface m_surface;
QEglFSCursor *m_cursor;
};