add error trap, fixes a possible BadWindow if a window closed itself in

2002-04-21  Havoc Pennington  <hp@pobox.com>

	* src/window.c (meta_window_send_icccm_message): add error trap,
	fixes a possible BadWindow if a window closed itself in response
	to the delete window message prior to us sending the ping message.
This commit is contained in:
Havoc Pennington 2002-04-22 03:23:29 +00:00 committed by Havoc Pennington
parent 115c086eb9
commit 8183c509d9
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-04-21 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_send_icccm_message): add error trap,
fixes a possible BadWindow if a window closed itself in response
to the delete window message prior to us sending the ping message.
2002-04-21 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_move_resize_now): never revert to

View File

@ -2747,8 +2747,10 @@ meta_window_send_icccm_message (MetaWindow *window,
ev.data.l[0] = atom;
ev.data.l[1] = timestamp;
meta_error_trap_push (window->display);
XSendEvent (window->display->xdisplay,
window->xwindow, False, 0, (XEvent*) &ev);
meta_error_trap_pop (window->display);
}
gboolean