Fixed unspecified monitor streaming the whole X

This commit is contained in:
kiralycraft
2021-02-28 17:56:38 +02:00
parent b336bf2fcb
commit fe3784454a
2 changed files with 6 additions and 2 deletions

View File

@@ -202,7 +202,8 @@ struct x11_attr_t: public display_t
if (streamedMonitor != -1) //If the value has been set at all
{
BOOST_LOG(warning) << "Configuring selected monitor to stream. If it fails here, you may need Xrandr >= 1.5"sv;
BOOST_LOG(info) << "Configuring selected monitor ("<< streamedMonitor<<") to stream. If it fails here, you may need Xrandr >= 1.5"sv;
XRRScreenResources *screenr = XRRGetScreenResources(displayDisplay, xwindow);
// This is the key right here. Use XRRScreenResources::noutput
int output = screenr->noutput;