[mutter/wayland] MonitorXrandr: Mask a BadValue error on VirtualBox.



commit c2b91559798b5ea8c7f9af11569803839c7df475
Author: Colin Guthrie <colin mageia org>
Date:   Mon Sep 2 16:09:22 2013 +0100

    MonitorXrandr: Mask a BadValue error on VirtualBox.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707563

 src/backends/x11/meta-monitor-manager-xrandr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/x11/meta-monitor-manager-xrandr.c b/src/backends/x11/meta-monitor-manager-xrandr.c
index f8284a0..5fbddd4 100644
--- a/src/backends/x11/meta-monitor-manager-xrandr.c
+++ b/src/backends/x11/meta-monitor-manager-xrandr.c
@@ -677,11 +677,13 @@ output_set_presentation_xrandr (MetaMonitorManagerXrandr *manager_xrandr,
   MetaDisplay *display = meta_get_display ();
   int value = presentation;
 
+  meta_error_trap_push (display);
   XRRChangeOutputProperty (manager_xrandr->xdisplay,
                            (XID)output->output_id,
                            display->atom__MUTTER_PRESENTATION_OUTPUT,
                            XA_CARDINAL, 32, PropModeReplace,
                            (unsigned char*) &value, 1);
+  meta_error_trap_pop (display);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]