summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-10-07 20:21:41 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-07 22:25:33 +0200
commitc5006a6fe23195a977bfd84c61d715e0b19850a7 (patch)
treeba6a03c81cb0052a0122772f0f2809788d6511b6 /src/plugins/platforms/xcb/qxcbconnection.h
parentc66b7cf55b6913dcf33d49d4f6bf9db51ccf39a8 (diff)
Fixed potential issue in XCB plugin.
Use the actual atom instead of the enum value of the atom when signaling that the event loop should exit. Change-Id: Ib98c6a46cadcecc727b28411b4c0c12c434ea828 Reviewed-on: http://codereview.qt-project.org/6265 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index eb95326535..769b2e79f8 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -229,11 +229,12 @@ namespace QXcbAtom {
};
}
+class QXcbConnection;
class QXcbEventReader : public QThread
{
Q_OBJECT
public:
- QXcbEventReader(xcb_connection_t *connection)
+ QXcbEventReader(QXcbConnection *connection)
: m_connection(connection)
{
}
@@ -253,7 +254,7 @@ private:
QMutex m_mutex;
QList<xcb_generic_event_t *> m_events;
- xcb_connection_t *m_connection;
+ QXcbConnection *m_connection;
};
class QAbstractEventDispatcher;