Fixed unspecified monitor streaming the whole X
This commit is contained in:
parent
b336bf2fcb
commit
fe3784454a
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue