[mutter] MonitorXrandr: Mask a BadValue error on VirtualBox.
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MonitorXrandr: Mask a BadValue error on VirtualBox.
- Date: Wed, 11 Sep 2013 21:29:27 +0000 (UTC)
commit 4883b96e0dbf3e330175b5ab37869fd4d26ba0b9
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/core/monitor-xrandr.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/core/monitor-xrandr.c b/src/core/monitor-xrandr.c
index 5178801..cd9cf82 100644
--- a/src/core/monitor-xrandr.c
+++ b/src/core/monitor-xrandr.c
@@ -651,11 +651,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]