mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
MonitorXrandr: Mask a BadValue error on VirtualBox.
https://bugzilla.gnome.org/show_bug.cgi?id=707563
This commit is contained in:
parent
f68d65a5ae
commit
c2b9155979
@ -677,11 +677,13 @@ output_set_presentation_xrandr (MetaMonitorManagerXrandr *manager_xrandr,
|
|||||||
MetaDisplay *display = meta_get_display ();
|
MetaDisplay *display = meta_get_display ();
|
||||||
int value = presentation;
|
int value = presentation;
|
||||||
|
|
||||||
|
meta_error_trap_push (display);
|
||||||
XRRChangeOutputProperty (manager_xrandr->xdisplay,
|
XRRChangeOutputProperty (manager_xrandr->xdisplay,
|
||||||
(XID)output->output_id,
|
(XID)output->output_id,
|
||||||
display->atom__MUTTER_PRESENTATION_OUTPUT,
|
display->atom__MUTTER_PRESENTATION_OUTPUT,
|
||||||
XA_CARDINAL, 32, PropModeReplace,
|
XA_CARDINAL, 32, PropModeReplace,
|
||||||
(unsigned char*) &value, 1);
|
(unsigned char*) &value, 1);
|
||||||
|
meta_error_trap_pop (display);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user