summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-12 21:22:18 -0700
committerKeith Packard <keithp@keithp.com>2017-10-12 21:22:18 -0700
commitdb6c90dd6833b6b1de0c367895a62b7c38a28736 (patch)
treeae71329a55072d00aec208ffcd6fd5627f019cc6
parent00220af1426f318bda1c9d07e59356363d690d7c (diff)
randr: Report back better status while leased
xrandr doesn't like rotations to be 0, so return RR_Rotate_0 instead. Report back RR_Disconnected for status instead of 0 (which is RR_Connected). Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--randr/rrcrtc.c2
-rw-r--r--randr/rroutput.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 34a31a8e9..39aec0f95 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -1113,7 +1113,7 @@ ProcRRGetCrtcInfo(ClientPtr client)
rep.x = rep.y = rep.width = rep.height = 0;
rep.mode = 0;
rep.rotation = 0;
- rep.rotations = 0;
+ rep.rotations = RR_Rotate_0;
rep.nOutput = 0;
rep.nPossibleOutput = 0;
rep.length = 0;
diff --git a/randr/rroutput.c b/randr/rroutput.c
index ce2e6216b..cb7306649 100644
--- a/randr/rroutput.c
+++ b/randr/rroutput.c
@@ -449,7 +449,7 @@ ProcRRGetOutputInfo(ClientPtr client)
.crtc = None,
.mmWidth = 0,
.mmHeight = 0,
- .connection = 0,
+ .connection = RR_Disconnected,
.subpixelOrder = SubPixelUnknown,
.nCrtcs = 0,
.nModes = 0,