summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbclipboard.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-06-18 22:50:30 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-06-20 13:31:52 +0200
commit7a64f12cfe03b673ebb3c5e9e0396c6a504620d8 (patch)
tree95e0d377fdb67b2c3166d8b58ce934d9c3229f02 /src/plugins/platforms/xcb/qxcbclipboard.h
parent8ffbdae179ea91f5d9524ec4768990994a4ce3fb (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/qxcbclipboard.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbclipboard.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbclipboard.h b/src/plugins/platforms/xcb/qxcbclipboard.h
index db31051ee7..d23f93529b 100644
--- a/src/plugins/platforms/xcb/qxcbclipboard.h
+++ b/src/plugins/platforms/xcb/qxcbclipboard.h
@@ -45,6 +45,7 @@
#include <QPlatformClipboard>
#include <qxcbobject.h>
#include <xcb/xcb.h>
+#include <xcb/xfixes.h>
class QXcbConnection;
class QXcbScreen;
@@ -71,6 +72,7 @@ public:
void handleSelectionRequest(xcb_selection_request_event_t *event);
void handleSelectionClearRequest(xcb_selection_clear_event_t *event);
+ void handleXFixesSelectionRequest(xcb_xfixes_selection_notify_event_t *event);
bool clipboardReadProperty(xcb_window_t win, xcb_atom_t property, bool deleteProperty, QByteArray *buffer, int *size, xcb_atom_t *type, int *format) const;
QByteArray clipboardReadIncrementalProperty(xcb_window_t win, xcb_atom_t property, int nbytes, bool nullterm);