Only showing regular browser windows, not frames or iframes.

svn path=/trunk/netsurf/; revision=11366
This commit is contained in:
Sven Weidauer 2011-01-18 08:26:49 +00:00
parent 5105548de6
commit 0d98d39a1a
2 changed files with 8 additions and 3 deletions

View File

@ -35,7 +35,10 @@
NSWindow *win = [self window]; NSWindow *win = [self window];
[win setAcceptsMouseMovedEvents: YES]; [win setAcceptsMouseMovedEvents: YES];
[win makeKeyAndOrderFront: self];
if (browser->browser_window_type == BROWSER_WINDOW_NORMAL) {
[win makeKeyAndOrderFront: self];
}
return self; return self;
} }
@ -52,7 +55,9 @@
- (void)windowWillClose:(NSNotification *)notification; - (void)windowWillClose:(NSNotification *)notification;
{ {
if (NULL != browser) browser_window_destroy( browser ); if (NULL != browser && browser->browser_window_type == BROWSER_WINDOW_NORMAL) {
browser_window_destroy( browser );
}
} }
@end @end

View File

@ -813,7 +813,7 @@
<string>{{135, 249}, {691, 632}}</string> <string>{{135, 249}, {691, 632}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{135, 249}, {691, 632}}</string> <string>{{135, 249}, {691, 632}}</string>
<integer value="1"/> <boolean value="NO"/>
<string>{196, 240}</string> <string>{196, 240}</string>
<string>{{202, 428}, {480, 270}}</string> <string>{{202, 428}, {480, 270}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>