summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2014-12-18 21:16:10 +0100
committerTomasz Olszak <olszak.tomasz@gmail.com>2014-12-18 21:49:59 +0100
commita0c9992b530b3c300811e05df5a6780d8c9a5cfd (patch)
treef062001979e09b11ab72662f1913b655dc06abd3
parent4865e23dfbfb6f578471622a104b092192e0ca26 (diff)
downloadqtbase-a0c9992b530b3c300811e05df5a6780d8c9a5cfd.tar.gz
qtbase-a0c9992b530b3c300811e05df5a6780d8c9a5cfd.tar.bz2
qtbase-a0c9992b530b3c300811e05df5a6780d8c9a5cfd.zip
Fix for Added screen orientation handling in xcb plugin.
Change-Id: I458f3974b3b1b11e9078f4881cfd03f3158707d7 Reviewed-by: Philippe Coval <rzr@gna.org> Reviewed-by: Tomasz Olszak <olszak.tomasz@gmail.com>
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp
index 63f8d42d1d..405463124f 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.cpp
+++ b/src/plugins/platforms/xcb/qxcbconnection.cpp
@@ -1351,7 +1351,7 @@ void QXcbConnection::handleClientMessageEvent(const xcb_client_message_event_t *
case 270: e.rotation = XCB_RANDR_ROTATION_ROTATE_0; break;
}
- QXcbScreen *scrn = m_screens.at(primaryScreen());
+ QXcbScreen *scrn = primaryScreen();
e.width = scrn->geometry().width();
e.height = scrn->geometry().height();
e.mwidth = scrn->logicalDpi().first/Q_MM_PER_INCH/e.width;