mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fix for miniwindows not being drawn properly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16147 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
578ddfd0e9
commit
f1de0e1216
3 changed files with 16 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
2003-03-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSMenu.m: ([_updateUserDefaults:]) restore saved menu
|
||||
* Source/NSMenu.m: ([-_updateUserDefaults:]) restore saved menu
|
||||
location functionality (was only working for torn off menus).
|
||||
* Source/NSWindow: ([-miniaturise:]) order the counterpart window
|
||||
in so that it gets drawn properly.
|
||||
|
||||
2003-03-06 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
|
||||
|
||||
|
|
|
@ -94,8 +94,8 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
|
|||
* its a sever error, use a non-graphical exception handler
|
||||
*/
|
||||
if (GSCurrentContext() == nil
|
||||
|| [[exception name] isEqual: NSWindowServerCommunicationException]
|
||||
|| [[exception name] isEqual: GSWindowServerInternalException])
|
||||
|| [[exception name] isEqual: NSWindowServerCommunicationException]
|
||||
|| [[exception name] isEqual: GSWindowServerInternalException])
|
||||
{
|
||||
/* The following will raise again the exception using the base
|
||||
library exception handler */
|
||||
|
|
|
@ -2262,6 +2262,17 @@ resetCursorRectsForView(NSView *theView)
|
|||
[srv miniwindow: _windowNum];
|
||||
_f.visible = NO;
|
||||
|
||||
/*
|
||||
* We must order the miniwindow in so that we will start sending
|
||||
* it -_handleWindowNeedsDisplay: messages to tell it to display
|
||||
* itsself when neccessary.
|
||||
*/
|
||||
if (_counterpart != 0)
|
||||
{
|
||||
NSWindow *mini = GSWindowWithNumber(_counterpart);
|
||||
|
||||
[mini orderFront: self];
|
||||
}
|
||||
[nc postNotificationName: NSWindowDidMiniaturizeNotification
|
||||
object: self];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue