mirror of https://github.com/fltk/fltk
Simpler updateTrackingAreas method of class FLView is enough.
This commit is contained in:
parent
f5628aa66d
commit
bc606cce57
|
@ -2410,8 +2410,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
|
|||
- (void)updateTrackingAreas {
|
||||
if (fl_mac_os_version >= 100500) {
|
||||
Fl_Window *win = [(FLWindow*)[self window] getFl_Window];
|
||||
if (!win->parent() && !win->menu_window() && !win->tooltip_window() &&
|
||||
win->user_data() != &Fl_Screen_Driver::transient_scale_display) {
|
||||
if (!win->parent()) {
|
||||
while (true) {
|
||||
NSArray *a = [self trackingAreas]; // 10.5
|
||||
if ([a count] == 0) break;
|
||||
|
|
Loading…
Reference in New Issue