summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/common/randr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/common/randr.cxx b/unix/common/randr.cxx
index 76ae0bc3..9cfc95dd 100644
--- a/unix/common/randr.cxx
+++ b/unix/common/randr.cxx
@@ -300,6 +300,10 @@ unsigned int setScreenLayout(int fb_width, int fb_height, const rfb::ScreenSet&
if (outputIdMap->count(output) == 1)
continue;
+ /* Enabled? */
+ if (!vncRandRIsOutputEnabled(i))
+ continue;
+
/* Disable and move on... */
ret = vncRandRDisableOutput(i);
if (!ret) {