mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
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:
@@ -614,6 +614,7 @@ static void do_timer(CFRunLoopTimerRef timer, void* data)
|
|||||||
- (BOOL)windowShouldClose:(FLWindow *)w;
|
- (BOOL)windowShouldClose:(FLWindow *)w;
|
||||||
- (BOOL)containsGLsubwindow;
|
- (BOOL)containsGLsubwindow;
|
||||||
- (void)setContainsGLsubwindow:(BOOL)contains;
|
- (void)setContainsGLsubwindow:(BOOL)contains;
|
||||||
|
- (BOOL)canBecomeKeyWindow;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation FLWindow
|
@implementation FLWindow
|
||||||
@@ -650,6 +651,16 @@ static void do_timer(CFRunLoopTimerRef timer, void* data)
|
|||||||
{
|
{
|
||||||
containsGLsubwindow = contains;
|
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
|
@end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user