Hello list,

I think there is still a problem in the destruction of a GdkWindow:
in gdk_event_translate() (gdkevents-directfb.c:719) we react on a
DWET_DESTROYED DFBWindowEvent * to call gdk_window_destroy_notify(),
which
unrefs the GdkWindow and is therefore necessary for its finalization.
This event is posted at the end of dfb_window_destroy() (DirectFB-1.0.0/
src/core/windows.c:535).
However, dfb_window_destroy() is only called when the last reference to
it
is dropped and both, the IDirectFBEventBuffer and the IDirectFBWindow,
hold a reference to it. As it has to be removed from the
IDirectFBEventBuffer (which is done by my last patch) to be destroyed,
the event won't be passed through the IDirectFBEventBuffer to
gdk_event_translate(). Do I understand this correctly? (In my test,
gdk_window_destroy_notify and gdk_window_finalize() are not called).
Any ideas?

regards

Simon Lanzmich

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to