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 {
|
- (void)updateTrackingAreas {
|
||||||
if (fl_mac_os_version >= 100500) {
|
if (fl_mac_os_version >= 100500) {
|
||||||
Fl_Window *win = [(FLWindow*)[self window] getFl_Window];
|
Fl_Window *win = [(FLWindow*)[self window] getFl_Window];
|
||||||
if (!win->parent() && !win->menu_window() && !win->tooltip_window() &&
|
if (!win->parent()) {
|
||||||
win->user_data() != &Fl_Screen_Driver::transient_scale_display) {
|
|
||||||
while (true) {
|
while (true) {
|
||||||
NSArray *a = [self trackingAreas]; // 10.5
|
NSArray *a = [self trackingAreas]; // 10.5
|
||||||
if ([a count] == 0) break;
|
if ([a count] == 0) break;
|
||||||
|
|
Loading…
Reference in New Issue