xserver: Branch 'master'

Keith Packard keithp at kemper.freedesktop.org
Wed Feb 17 04:56:52 UTC 2016


 randr/rrmonitor.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit dbe8d03c42f01332b3dc41fe9290aed142f1436f
Author: Keith Packard <keithp at keithp.com>
Date:   Tue Feb 16 20:03:57 2016 -0800

    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 at keithp.com>
    Reviewed-by: Dave Airlie <airlied at redhat.com>

diff --git a/randr/rrmonitor.c b/randr/rrmonitor.c
index 58041bb..ba310ea 100644
--- a/randr/rrmonitor.c
+++ b/randr/rrmonitor.c
@@ -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;
 }


More information about the xorg-commit mailing list