mirror of
https://github.com/brl/mutter.git
synced 2025-01-07 10:12:14 +00:00
x11: Protect XChangeProperty call with error traps
They may happen around the time a window is destroyed, thus could result on BadWindow X errors. https://bugzilla.gnome.org/show_bug.cgi?id=788666
This commit is contained in:
parent
425df31cf9
commit
41f7a5fdf3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user