diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-08-09 09:16:38 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-08-10 09:04:54 +0000 |
commit | 9ab5c329bfe17122441000f0c8cdd1f32f09072b (patch) | |
tree | e07bfdf581de201c499bb7787b62418c25df24a3 /src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp | |
parent | 7de7f981dceb86775bdcc1ebb2b39b58ddca6d71 (diff) |
eglfs: Add basic support for controlling how the virtual desktop is formed
Choose between horizontal (default) and vertical.
Task-number: QTBUG-55188
Change-Id: Ibc490b0ad8c60b66db785455c57987eb8afdad0d
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp')
-rw-r--r-- | src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp index 30cd2f3225..74c7667f1f 100644 --- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp +++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmsdevice.cpp @@ -373,7 +373,12 @@ void QEglFSKmsDevice::createScreens() QEglFSKmsScreen *screen = createScreenForConnector(resources, connector, pos); if (screen) { integration->addScreen(screen); - pos.rx() += screen->geometry().width(); + + if (m_integration->virtualDesktopLayout() == QEglFSKmsIntegration::VirtualDesktopLayoutVertical) + pos.ry() += screen->geometry().height(); + else + pos.rx() += screen->geometry().width(); + siblings << screen; if (!primaryScreen) |