mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 21:41:25 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user