summaryrefslogtreecommitdiff
path: root/src/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-03-03 12:25:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-03-03 12:36:41 +0000
commita5978074dba200b4059f53ab94b9c34863250520 (patch)
tree593422f7e0ada568c25b7761b580456d43c99093 /src/uxa
parent78aaba45c9ccc56061597ee9c5e1c822566a0da3 (diff)
Convert from RRSetChanged() to RROutputChanged()
RRSetChanged() is much more recent than RROutputChanged(), and RROutptChanged() allows for more finer grained updates. Switch to RROutputChanged for compilation with xorg-server-1.14 and older. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/uxa')
-rw-r--r--src/uxa/intel_display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
index 45afbae9..544382a0 100644
--- a/src/uxa/intel_display.c
+++ b/src/uxa/intel_display.c
@@ -1493,6 +1493,7 @@ intel_output_init(ScrnInfoPtr scrn, struct intel_mode *mode, drmModeResPtr mode_
intel_output = output->driver_private;
intel_output->output_id = mode_res->connectors[num];
intel_output->mode_output = koutput;
+ RROutputChanged(output->randr_output, TRUE);
return;
}
}
@@ -2495,6 +2496,7 @@ restart_destroy:
drmModeFreeConnector(intel_output->mode_output);
intel_output->mode_output = NULL;
intel_output->output_id = -1;
+ RROutputChanged(output->randr_output, TRUE);
changed = TRUE;
if (mode->delete_dp_12_displays) {
@@ -2525,10 +2527,8 @@ restart_destroy:
intel_output_init(scrn, intel->modes, mode_res, i, 1);
}
- if (changed) {
- RRSetChanged(xf86ScrnToScreen(scrn));
+ if (changed)
RRTellChanged(xf86ScrnToScreen(scrn));
- }
drmModeFreeResources(mode_res);
out: