x11-Protect-XChangeProperty-call-with-error-traps
authorDebian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Sat, 21 Oct 2017 23:47:22 +0000 (00:47 +0100)
committerJeremy Bicha <jbicha@debian.org>
Sat, 21 Oct 2017 23:47:22 +0000 (00:47 +0100)
Gbp-Pq: Name 0006-x11-Protect-XChangeProperty-call-with-error-traps.patch

src/x11/window-x11.c

index 36a5e70a3d0898efcba3705d109136a9f5165f8a..4885f5fea35b474b2fc71e5686d517ec3d483fcf 100644 (file)
@@ -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