From: Debian GNOME Maintainers Date: Sat, 21 Oct 2017 23:47:22 +0000 (+0100) Subject: x11-Protect-XChangeProperty-call-with-error-traps X-Git-Tag: archive/raspbian/3.28.1-1+rpi1~2^2^2^2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bed6590f7c6960fa747c57bc573d676249f64195;p=mutter.git x11-Protect-XChangeProperty-call-with-error-traps Gbp-Pq: Name 0006-x11-Protect-XChangeProperty-call-with-error-traps.patch --- diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index 36a5e70..4885f5f 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -920,11 +920,13 @@ update_gtk_edge_constraints (MetaWindow *window) meta_verbose ("Setting _GTK_EDGE_CONSTRAINTS to %lu\n", data[0]); + meta_error_trap_push (window->display); XChangeProperty (window->display->xdisplay, window->xwindow, window->display->atom__GTK_EDGE_CONSTRAINTS, XA_CARDINAL, 32, PropModeReplace, (guchar*) data, 1); + meta_error_trap_pop (window->display); } static gboolean