summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-06-06 10:02:06 +0200
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-06-06 10:15:14 +0200
commit78264f333eb7c262380714ed6517562266f11a03 (patch)
tree8d7c12effd91d0c8987c26303f9ef501b843b5a0 /src/plugins/platforms/xcb/qxcbconnection.h
parent4f1a6ac732f7f879b082b6d413ca4918c6b06dc3 (diff)
Avoid setting the active window to null when there is a FocusIn queued.
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index e0cb1d954e..51aa09fcef 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -284,6 +284,9 @@ public:
QXcbWindow *platformWindowFromId(xcb_window_t id);
+ typedef bool (*PeekFunc)(xcb_generic_event_t *);
+ void addPeekFunc(PeekFunc f);
+
private slots:
void processXcbEvents();
@@ -335,6 +338,8 @@ private:
QVector<xcb_generic_event_t *> eventqueue;
WindowMapper m_mapper;
+
+ QVector<PeekFunc> m_peekFuncs;
};
#define DISPLAY_FROM_XCB(object) ((Display *)(object->connection()->xlib_display()))