From 78264f333eb7c262380714ed6517562266f11a03 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 6 Jun 2011 10:02:06 +0200 Subject: Avoid setting the active window to null when there is a FocusIn queued. --- src/plugins/platforms/xcb/qxcbconnection.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/platforms/xcb/qxcbconnection.h') 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 eventqueue; WindowMapper m_mapper; + + QVector m_peekFuncs; }; #define DISPLAY_FROM_XCB(object) ((Display *)(object->connection()->xlib_display())) -- cgit v1.2.3