forked from AuroraMiddleware/gtk
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:
parent
f543bef062
commit
531c38a3e2
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user