Skip to content
Snippets Groups Projects
Commit 6ee8d1c4 authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

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
parent abab0c29
No related branches found
No related tags found
No related merge requests found
...@@ -151,8 +151,10 @@ void Video::SourcesModel::switchTo(const int idx) ...@@ -151,8 +151,10 @@ void Video::SourcesModel::switchTo(const int idx)
DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::NONE); DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::NONE);
break; break;
case ExtendedDeviceList::SCREEN: 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.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.width())
.arg(d_ptr->m_Display.rect.height())); .arg(d_ptr->m_Display.rect.height()));
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment