Simpler updateTrackingAreas method of class FLView is enough.

This commit is contained in:
ManoloFLTK 2022-03-20 14:06:30 +01:00
parent f5628aa66d
commit bc606cce57
1 changed files with 1 additions and 2 deletions

View File

@ -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;