DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1873
Version: 1.1-current
Link: http://www.fltk.org/str.php?L1873
Version: 1.1-current
Index: Fl_mac.cxx
===================================================================
--- Fl_mac.cxx (revision 6027)
+++ Fl_mac.cxx (working copy)
@@ -850,7 +850,7 @@
if ( !window->parent() ) Fl::handle( FL_HIDE, window);
break;
case kEventWindowActivated:
- if ( window!=activeWindow )
+ if ( window->shown() && window!=activeWindow )
{
GetWindowClass( fl_xid( window ), &winClass );
if ( winClass != kHelpWindowClass ) { // help windows can't get the
focus!
@@ -899,6 +899,11 @@
fl_os_event = event;
Fl_Window *window = (Fl_Window*)userData;
+ if ( !window->shown() )
+ {
+ fl_unlock_function();
+ return noErr;
+ }
Fl::first_window(window);
EventMouseWheelAxis axis;
@@ -954,6 +959,11 @@
fl_os_event = event;
Fl_Window *window = (Fl_Window*)userData;
+ if ( !window->shown() )
+ {
+ fl_unlock_function();
+ return noErr;
+ }
Fl::first_window(window);
Point pos;
GetEventParameter( event, kEventParamMouseLocation, typeQDPoint, NULL,
sizeof(Point), NULL, &pos );
@@ -2459,4 +2469,3 @@
//
// End of "$Id$".
//
-
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs