[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small NSWindow bug [PATCH]
From: |
Jeff Teunissen |
Subject: |
Small NSWindow bug [PATCH] |
Date: |
Sat, 09 Feb 2002 03:19:49 -0500 |
NSWindow -performMiniaturize: doesn't check the NSMiniaturizableWindowMask
flag before telling the window to miniaturize.
small patch included to fix it.
--
| Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
| GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project http://www.quakeforge.net/
| Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/
--- NSWindow.m 6 Feb 2002 10:29:26 -0000 1.215
+++ NSWindow.m 9 Feb 2002 08:18:50 -0000
@@ -2189,15 +2189,15 @@
- (void) performMiniaturize: (id)sender
{
- if (!(_styleMask & (NSIconWindowMask | NSMiniWindowMask)))
- {
- // FIXME: The button should be highlighted
- [self miniaturize: sender];
- }
- else
+ if ((!(_styleMask & NSMiniaturizableWindowMask))
+ || (_styleMask & (NSIconWindowMask | NSMiniWindowMask)))
{
NSBeep();
+ return;
}
+
+ // FIXME: The button should be highlighted
+ [self miniaturize: sender];
}
- (int) resizeFlags
- Small NSWindow bug [PATCH],
Jeff Teunissen <=