mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +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
4f41a5e84e
commit
dbe8cd6a19
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>
|
2006-03-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/cairo/NSBezierPathCairo.m
|
* Source/cairo/NSBezierPathCairo.m
|
||||||
|
|
|
@ -1299,6 +1299,11 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
XDestroyWindow(dpy, window->ident);
|
XDestroyWindow(dpy, window->ident);
|
||||||
if (window->gc)
|
if (window->gc)
|
||||||
XFreeGC (dpy, 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);
|
NSMapRemove(windowmaps, (void*)window->ident);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue