|
|
@ -614,7 +614,6 @@ 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 |
|
|
@ -651,16 +650,6 @@ 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 |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
@ -1666,6 +1655,7 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) { |
|
|
|
- (void)mouseDown:(NSEvent *)theEvent; |
|
|
|
- (void)mouseDown:(NSEvent *)theEvent; |
|
|
|
- (void)rightMouseDown:(NSEvent *)theEvent; |
|
|
|
- (void)rightMouseDown:(NSEvent *)theEvent; |
|
|
|
- (void)otherMouseDown:(NSEvent *)theEvent; |
|
|
|
- (void)otherMouseDown:(NSEvent *)theEvent; |
|
|
|
|
|
|
|
- (void)mouseMoved:(NSEvent *)theEvent; |
|
|
|
- (void)mouseDragged:(NSEvent *)theEvent; |
|
|
|
- (void)mouseDragged:(NSEvent *)theEvent; |
|
|
|
- (void)rightMouseDragged:(NSEvent *)theEvent; |
|
|
|
- (void)rightMouseDragged:(NSEvent *)theEvent; |
|
|
|
- (void)otherMouseDragged:(NSEvent *)theEvent; |
|
|
|
- (void)otherMouseDragged:(NSEvent *)theEvent; |
|
|
|