Check that window_private is not NULL before using it. (#444351, David

2007-06-05  Matthias Clasen <mclasen@redhat.com>

        * gdk/x11/gdkevents-x11.c (gdk_event_translate): Check that
        window_private is not NULL before using it.  (#444351, David Ronis)



svn path=/trunk/; revision=18043
This commit is contained in:
Matthias Clasen 2007-06-05 15:53:41 +00:00 committed by Matthias Clasen
parent 2105398a55
commit 3047c1fcf2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-05 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Check that
window_private is not NULL before using it. (#444351, David Ronis)
2007-06-05 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/{16,24}/gtk-find*: drop the paper sheet.

View File

@ -2102,7 +2102,7 @@ gdk_event_translate (GdkDisplay *display,
else
#endif
#if defined(HAVE_XCOMPOSITE) && defined (HAVE_XDAMAGE) && defined (HAVE_XFIXES)
if (display_x11->have_xdamage && window_private->composited &&
if (display_x11->have_xdamage && window_private && window_private->composited &&
xevent->type == display_x11->xdamage_event_base + XDamageNotify)
{
XDamageNotifyEvent *damage_event = (XDamageNotifyEvent *) xevent;