summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2012-10-01 10:17:21 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-19 18:11:06 +0200
commitcdc2161b6f87deaac6a256885fd6ecdccad6eb82 (patch)
tree3d2cd1a20e2b4a0b7e871c6ab78b4fa2bcaf9195 /src/plugins/platforms/xcb/qxcbconnection.h
parent7d7f09650c3b3b2990f16ff4a6401a8c74e1f868 (diff)
Made xcb plugin work when the GLX extension is not present.
Change-Id: I9285d7524586ff404206c088019ece33335137d9 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index 8a6c418788..cbfdd803f2 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -374,6 +374,7 @@ 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 hasGLX() const { return has_glx_extension; }
bool hasXFixes() const { return xfixes_first_event > 0; }
bool hasXShape() const { return has_shape_extension; }
bool hasXRandr() const { return has_randr_extension; }
@@ -387,6 +388,7 @@ private slots:
private:
void initializeAllAtoms();
void sendConnectionEvent(QXcbAtom::Atom atom, uint id = 0);
+ void initializeGLX();
void initializeXFixes();
void initializeXRender();
void initializeXRandr();
@@ -507,6 +509,7 @@ private:
uint32_t xfixes_first_event;
uint32_t xrandr_first_event;
+ bool has_glx_extension;
bool has_shape_extension;
bool has_randr_extension;
bool has_input_shape;