--- gtk+.sav/gdk/directfb/gdkmain-directfb.c.orig 2005-05-06 17:44:51.000000000 +0000 +++ gtk+.sav/gdk/directfb/gdkmain-directfb.c 2005-05-06 16:07:01.000000000 +0000 @@ -613,7 +613,7 @@ } w = window; - while (w != _gdk_parent_root) + while (w && w != _gdk_parent_root) { /* Huge hack, so that we don't propagate events to GtkWindow->frame */ if ((w != window) &&