Re: Re: GdkWindow ref counting



On Fri, 2006-11-03 at 11:20 +0200, Johan Bilien wrote:

> Now what would be the correct way to dispose of this GdkWindow?
> Currently, when the window disappears from the WM's client list, we
> called gdk_window_destroy () on the window. But the refcount at this
> point seems to be quite unpredictable, and we end up leaking the object.

Ah, yes, also replace the gdk_window_destroy() with gdk_window_unref();
you really don't want to call gdk_window_destroy() on a window that
an application has just temporarily withdrawn.

					- Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]