Don't crash on broken ClientMessage events. (#157056, Owen Taylor)

2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
	broken ClientMessage events.  (#157056, Owen Taylor)
This commit is contained in:
Matthias Clasen 2004-11-01 18:30:52 +00:00 committed by Matthias Clasen
parent f543bef062
commit 531c38a3e2
5 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2004-11-01 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
broken ClientMessage events. (#157056, Owen Taylor)
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)

View File

@ -1,5 +1,8 @@
2004-11-01 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
broken ClientMessage events. (#157056, Owen Taylor)
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)

View File

@ -1,5 +1,8 @@
2004-11-01 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
broken ClientMessage events. (#157056, Owen Taylor)
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)

View File

@ -1,5 +1,8 @@
2004-11-01 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
broken ClientMessage events. (#157056, Owen Taylor)
* gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
the docs. (#157044, Masao Mutoh)

View File

@ -2039,8 +2039,14 @@ gdk_wm_protocols_filter (GdkXEvent *xev,
{
XEvent *xevent = (XEvent *)xev;
GdkWindow *win = event->any.window;
GdkDisplay *display = GDK_WINDOW_DISPLAY (win);
Atom atom = (Atom)xevent->xclient.data.l[0];
GdkDisplay *display;
Atom atom;
if (!win)
return GDK_FILTER_REMOVE;
display = GDK_WINDOW_DISPLAY (win);
atom = (Atom)xevent->xclient.data.l[0];
if (atom == gdk_x11_get_xatom_by_name_for_display (display, "WM_DELETE_WINDOW"))
{