diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-06-18 22:50:30 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-06-20 13:31:52 +0200 |
commit | 7a64f12cfe03b673ebb3c5e9e0396c6a504620d8 (patch) | |
tree | 95e0d377fdb67b2c3166d8b58ce934d9c3229f02 /src/plugins/platforms/xcb/qxcbconnection.h | |
parent | 8ffbdae179ea91f5d9524ec4768990994a4ce3fb (diff) |
use selection changed events from XFixes
properly initialize the XFixes extension and then
use the selection changed events to notify
Qt apps.
Reviewed-by: Samuel
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h index 9413b682c3..6cc7e13d02 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.h +++ b/src/plugins/platforms/xcb/qxcbconnection.h @@ -286,6 +286,8 @@ public: inline xcb_timestamp_t time() const { return m_time; } inline void setTime(xcb_timestamp_t t) { if (t > m_time) m_time = t; } + bool hasXFixes() const { return xfixes_first_event > 0; } + private slots: void processXcbEvents(); @@ -347,6 +349,8 @@ private: WindowMapper m_mapper; QVector<PeekFunc> m_peekFuncs; + + uint32_t xfixes_first_event; }; #define DISPLAY_FROM_XCB(object) ((Display *)(object->connection()->xlib_display())) |