commit | 8fcf6cc65971ffe5384384c8fede568877e3a032 | [log] [tgz] |
---|---|---|
author | Peter Åstrand (astrand) <astrand@cendio.se> | Tue Mar 20 10:26:40 2018 +0100 |
committer | Peter Åstrand (astrand) <astrand@cendio.se> | Mon Apr 09 20:28:58 2018 +0200 |
tree | dbc74afd866b894e55a4abd72f3a2d3568f217f0 | |
parent | a61c6f2a24416b5dccb9517e3d85759ea7405dc8 [diff] |
Avoid disabling outputs which are already disabled Better to avoid making unnecessary calls, but mainly we want to avoid logging false errors.
diff --git a/unix/common/randr.cxx b/unix/common/randr.cxx index 76ae0bc..9cfc95d 100644 --- a/unix/common/randr.cxx +++ b/unix/common/randr.cxx
@@ -300,6 +300,10 @@ if (outputIdMap->count(output) == 1) continue; + /* Enabled? */ + if (!vncRandRIsOutputEnabled(i)) + continue; + /* Disable and move on... */ ret = vncRandRDisableOutput(i); if (!ret) {