When changing a non-pending property, call the screen rrOutputSetProperty hook.
This commit is contained in:
parent
e3add7c8ec
commit
cde17015df
|
@ -125,6 +125,7 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
|
||||||
{
|
{
|
||||||
RRPropertyPtr prop;
|
RRPropertyPtr prop;
|
||||||
xRROutputPropertyNotifyEvent event;
|
xRROutputPropertyNotifyEvent event;
|
||||||
|
rrScrPrivPtr pScrPriv = rrGetScrPriv(output->pScreen);
|
||||||
int sizeInBytes;
|
int sizeInBytes;
|
||||||
int totalSize;
|
int totalSize;
|
||||||
pointer data;
|
pointer data;
|
||||||
|
@ -213,6 +214,13 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
|
||||||
prop->next = output->properties;
|
prop->next = output->properties;
|
||||||
output->properties = prop;
|
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)
|
if (sendevent)
|
||||||
{
|
{
|
||||||
event.type = RREventBase + RRNotify;
|
event.type = RREventBase + RRNotify;
|
||||||
|
|
Loading…
Reference in New Issue