mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 11:50:48 +00:00
Set _windowNum to 0 so the backend window will be recreated when required.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
30941d3bd5
commit
8184380380
2 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-05-13 20:19 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSButton.m (-setState:, -setNextState): Mark the view
|
||||
as needing display, don't force a display.
|
||||
|
||||
* Source/NSWindow.m (-_terminateBackendWindow): Set _windowNum to 0
|
||||
so the window will be recreated the next time it is needed.
|
||||
|
||||
2003-05-12 17:30 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSView.m (-lockFocusInRect:): Don't save the clipping path
|
||||
|
|
|
@ -613,6 +613,12 @@ static NSNotificationCenter *nc = nil;
|
|||
defer: NO];
|
||||
}
|
||||
|
||||
/*
|
||||
It is important to make sure that the window is in a meaningful state after
|
||||
this has been called, and that the backend window can be recreated later,
|
||||
since one-shot windows may have their backend windows created and terminated
|
||||
many times.
|
||||
*/
|
||||
- (void) _terminateBackendWindow
|
||||
{
|
||||
NSGraphicsContext *context = GSCurrentContext();
|
||||
|
@ -628,6 +634,7 @@ static NSNotificationCenter *nc = nil;
|
|||
{
|
||||
[GSServerForWindow(self) termwindow: _windowNum];
|
||||
NSMapRemove(windowmaps, (void*)_windowNum);
|
||||
_windowNum = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue