From bed6590f7c6960fa747c57bc573d676249f64195 Mon Sep 17 00:00:00 2001 From: Debian GNOME Maintainers Date: Sun, 22 Oct 2017 00:47:22 +0100 Subject: [PATCH] x11-Protect-XChangeProperty-call-with-error-traps Gbp-Pq: Name 0006-x11-Protect-XChangeProperty-call-with-error-traps.patch --- src/x11/window-x11.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2