diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-10-10 22:17:41 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-10-13 10:05:39 +0200 |
commit | 44e471834e193478d14ba8cfafd857a3bea867cc (patch) | |
tree | 3f38c418b17c4b09d8f97dfdad54ac0282463e3b /src/client/qwaylandscreen.cpp | |
parent | 5558b42ff8536efdacb94b85a9bd4a00217314df (diff) | |
download | qtwayland-44e471834e193478d14ba8cfafd857a3bea867cc.tar.gz |
Be compatible with older compositors
When binding globals take care of the version the compositor provides
and don't call requests that the compositor doesn't implement.
Change-Id: Iea0c534fb9e005720857e2778e380b6a9c22a6f3
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/client/qwaylandscreen.cpp')
-rw-r--r-- | src/client/qwaylandscreen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp index 5c625ed4..6e48c442 100644 --- a/src/client/qwaylandscreen.cpp +++ b/src/client/qwaylandscreen.cpp @@ -53,9 +53,9 @@ QT_BEGIN_NAMESPACE -QWaylandScreen::QWaylandScreen(QWaylandDisplay *waylandDisplay, uint32_t id) +QWaylandScreen::QWaylandScreen(QWaylandDisplay *waylandDisplay, int version, uint32_t id) : QPlatformScreen() - , QtWayland::wl_output(waylandDisplay->wl_registry(), id, 2) + , QtWayland::wl_output(waylandDisplay->wl_registry(), id, qMin(version, 2)) , m_outputId(id) , mWaylandDisplay(waylandDisplay) , mExtendedOutput(0) |