summaryrefslogtreecommitdiff
path: root/randr/rrproperty.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-01-16 13:01:03 -0800
committerEric Anholt <eric@anholt.net>2007-01-16 13:01:45 -0800
commitcde17015dff1ced2aabb8b76c08f9110237821a5 (patch)
tree603e4ebe9aca50f6cb89f05048069bdf76d0be23 /randr/rrproperty.c
parente3add7c8ecbb2a0a662860f208f6ae7d1857c717 (diff)
When changing a non-pending property, call the screen rrOutputSetProperty hook.
Diffstat (limited to 'randr/rrproperty.c')
-rw-r--r--randr/rrproperty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index 4b77d3936..916caf030 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -125,6 +125,7 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
{
RRPropertyPtr prop;
xRROutputPropertyNotifyEvent event;
+ rrScrPrivPtr pScrPriv = rrGetScrPriv(output->pScreen);
int sizeInBytes;
int totalSize;
pointer data;
@@ -213,6 +214,13 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
prop->next = output->properties;
output->properties = prop;
}
+
+ if (!prop->is_pending) {
+ /* What should we do in case of failure? */
+ pScrPriv->rrOutputSetProperty(output->pScreen, output,
+ prop->propertyName, prop_value);
+ }
+
if (sendevent)
{
event.type = RREventBase + RRNotify;