canBecomeMainWindow() is not absolutely necessary, but it makes

the window decorations behave better by properly graying out windows
that will have their input stolen by a modal one.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Pierre Ossman 2014-06-11 14:12:29 +00:00
parent 7057e56c28
commit 5e9624286a
1 changed files with 0 additions and 4 deletions

View File

@ -680,9 +680,6 @@ void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data)
return !(w->tooltip_window() || w->menu_window()); return !(w->tooltip_window() || w->menu_window());
} }
// TODO see if we really need a canBecomeMainWindow ...
#if 0
- (BOOL)canBecomeMainWindow - (BOOL)canBecomeMainWindow
{ {
if (Fl::modal_ && (Fl::modal_ != w)) if (Fl::modal_ && (Fl::modal_ != w))
@ -691,7 +688,6 @@ void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data)
return !(w->tooltip_window() || w->menu_window()); return !(w->tooltip_window() || w->menu_window());
} }
#endif
@end @end