diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2006-12-12 09:54:52 -0800 |
---|---|---|
committer | Keith Packard <keithp@guitar.keithp.com> | 2006-12-12 09:54:52 -0800 |
commit | c69c3080febd8617349f88557c3c04388a13a76c (patch) | |
tree | 2ae4bbe27364a11bb834c39fe370fc2bbd253de2 | |
parent | 6be56cd10d934e496004f9ffd377225fd179f4b1 (diff) |
mark disabled crtc as changing, set rotation to 90 for disabled crtc.
--off code was not correctly finding and marking the to-be-disabled crtc,
and the disabling code was sending an uninitialized rotation value to the
server when no outputs were connected.
-rw-r--r-- | xrandr.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -548,6 +548,16 @@ main (int argc, char **argv) xrandr_output->x = 0; xrandr_output->y = 0; xrandr_output->rotation = RR_Rotate_0; + for (c = 0; c < res->ncrtc; c++) + { + if (res->crtcs[c] == output_info->crtc) + break; + } + if (c < res->ncrtc) + { + crtc_info = crtc_infos[c]; + crtc_changing[c] = True; + } } else { @@ -834,6 +844,9 @@ main (int argc, char **argv) rotation = xrandr_output->rotation; } } + if (noutput == 0) + rotation = RR_Rotate_90; + if (verbose) { if (mode) { |