mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
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:
parent
115c086eb9
commit
8183c509d9
@ -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>
|
2002-04-21 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/window.c (meta_window_move_resize_now): never revert to
|
* src/window.c (meta_window_move_resize_now): never revert to
|
||||||
|
@ -2746,9 +2746,11 @@ meta_window_send_icccm_message (MetaWindow *window,
|
|||||||
ev.format = 32;
|
ev.format = 32;
|
||||||
ev.data.l[0] = atom;
|
ev.data.l[0] = atom;
|
||||||
ev.data.l[1] = timestamp;
|
ev.data.l[1] = timestamp;
|
||||||
|
|
||||||
|
meta_error_trap_push (window->display);
|
||||||
XSendEvent (window->display->xdisplay,
|
XSendEvent (window->display->xdisplay,
|
||||||
window->xwindow, False, 0, (XEvent*) &ev);
|
window->xwindow, False, 0, (XEvent*) &ev);
|
||||||
|
meta_error_trap_pop (window->display);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user