Fixes STR #2462.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
93135e36f4
commit
5f3988e934
@ -614,6 +614,7 @@ static void do_timer(CFRunLoopTimerRef timer, void* data)
|
||||
- (BOOL)windowShouldClose:(FLWindow *)w;
|
||||
- (BOOL)containsGLsubwindow;
|
||||
- (void)setContainsGLsubwindow:(BOOL)contains;
|
||||
- (BOOL)canBecomeKeyWindow;
|
||||
@end
|
||||
|
||||
@implementation FLWindow
|
||||
@ -650,6 +651,16 @@ static void do_timer(CFRunLoopTimerRef timer, void* data)
|
||||
{
|
||||
containsGLsubwindow = contains;
|
||||
}
|
||||
- (BOOL)canBecomeKeyWindow
|
||||
{
|
||||
// before 10.5, the default impl of canBecomeKeyWindow is not OK for tooltip windows
|
||||
// we return YES for these windows
|
||||
BOOL retval;
|
||||
Fl_Window *flw = (Fl_Window*)[self getFl_Window];
|
||||
if(fl_mac_os_version < 0x1050 && flw->tooltip_window()) retval = YES;
|
||||
else retval = [super canBecomeKeyWindow];
|
||||
return retval;
|
||||
}
|
||||
@end
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user