randr: Send ConfigNotify when manual monitor list changes
This lets clients know that the layout of the monitors on the screen
has changed so they can adapt appropriately.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit dbe8d03c42
)
This commit is contained in:
parent
fc3eef6024
commit
29d1c5a8e4
|
@ -721,7 +721,9 @@ ProcRRSetMonitor(ClientPtr client)
|
|||
monitor->geometry.mmHeight = stuff->monitor.heightInMillimeters;
|
||||
|
||||
r = RRMonitorAdd(client, screen, monitor);
|
||||
if (r != Success)
|
||||
if (r == Success)
|
||||
RRSendConfigNotify(screen);
|
||||
else
|
||||
RRMonitorFree(monitor);
|
||||
return r;
|
||||
}
|
||||
|
@ -745,5 +747,8 @@ ProcRRDeleteMonitor(ClientPtr client)
|
|||
return BadAtom;
|
||||
}
|
||||
|
||||
return RRMonitorDelete(client, screen, stuff->name);
|
||||
r = RRMonitorDelete(client, screen, stuff->name);
|
||||
if (r == Success)
|
||||
RRSendConfigNotify(screen);
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user