From 6ee8d1c4a4fa957e2e83af9a250036ba3fdb0336 Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Sun, 22 Mar 2015 01:02:52 -0400 Subject: [PATCH] video: improve screen extended device type The screen as the device type now takes the x and y positon of the screen space that the user wants to share into account Refs #69013 --- src/video/sourcesmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video/sourcesmodel.cpp b/src/video/sourcesmodel.cpp index 950462e2..f4a76786 100644 --- a/src/video/sourcesmodel.cpp +++ b/src/video/sourcesmodel.cpp @@ -151,8 +151,10 @@ void Video::SourcesModel::switchTo(const int idx) DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::NONE); break; case ExtendedDeviceList::SCREEN: - DBus::VideoManager::instance().switchInput( QString(Video::SourcesModelPrivate::ProtocolPrefix::DISPLAY)+QString(":%1 %2x%3") + DBus::VideoManager::instance().switchInput( QString(Video::SourcesModelPrivate::ProtocolPrefix::DISPLAY)+QString(":%1+%2,%3 %4x%5") .arg(d_ptr->m_Display.index) + .arg(d_ptr->m_Display.rect.x()) + .arg(d_ptr->m_Display.rect.y()) .arg(d_ptr->m_Display.rect.width()) .arg(d_ptr->m_Display.rect.height())); break; -- GitLab