Commit 531c38a3 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent f543bef0
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)
......
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)
......
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)
......
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)
......
......@@ -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"))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment