mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
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
This commit is contained in:
parent
6d504f2218
commit
ea871f3be2
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-03-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerWindow.m (-termwindow:): Reset the window
|
||||
cache, if it points to the terminated window.
|
||||
|
||||
2006-03-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/cairo/NSBezierPathCairo.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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue