From dbe8cd6a19883a19688ba5a0f7703ee5c7d6fad0 Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Sun, 12 Mar 2006 23:28:26 +0000 Subject: [PATCH] Reset the window cache, when terminating the currnt window. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22645 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/x11/XGServerWindow.m | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 63f4bc1..2d883d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-13 Fred Kiefer + + * Source/x11/XGServerWindow.m (-termwindow:): Reset the window + cache, if it points to the terminated window. + 2006-03-12 Fred Kiefer * Source/cairo/NSBezierPathCairo.m diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index ceac508..3eaeab4 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -1299,6 +1299,11 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number, XDestroyWindow(dpy, window->ident); if (window->gc) XFreeGC (dpy, window->gc); + if (generic.cachedWindow != 0 && + window->ident == ((gswindow_device_t*)(generic.cachedWindow))->ident) + { + generic.cachedWindow = 0; + } NSMapRemove(windowmaps, (void*)window->ident); }