diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 10bfab90b..1a79c9434 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -49,6 +49,7 @@ #include "backends/meta-settings-private.h" #include "meta/main.h" #include "meta/meta-backend.h" +#include "meta/meta-x11-errors.h" #include "wayland/meta-xwayland-surface.h" #include "x11/meta-x11-display-private.h" @@ -1374,6 +1375,7 @@ meta_xwayland_set_primary_output (MetaX11Display *x11_display) if (!resources) return; + meta_x11_error_trap_push (x11_display); for (i = 0; i < resources->noutput; i++) { RROutput output_id = resources->outputs[i]; @@ -1407,6 +1409,7 @@ meta_xwayland_set_primary_output (MetaX11Display *x11_display) break; } } + meta_x11_error_trap_pop (x11_display); XRRFreeScreenResources (resources); }