Author: manolo
Date: 2011-03-25 05:31:51 -0700 (Fri, 25 Mar 2011)
New Revision: 8533
Log:
Fix 2nd issue of STR #2594: Fl::focus() now informs Mac OS when the focus 
changes window.

Modified:
   branches/branch-1.3/src/Fl.cxx

Modified: branches/branch-1.3/src/Fl.cxx
===================================================================
--- branches/branch-1.3/src/Fl.cxx      2011-03-25 12:16:57 UTC (rev 8532)
+++ branches/branch-1.3/src/Fl.cxx      2011-03-25 12:31:51 UTC (rev 8533)
@@ -816,7 +816,12 @@
       Fl_Window *win = 0, *w1 = o->as_window();
       if (!w1) w1 = o->window();
       while (w1) { win=w1; w1=win->window(); }
-      if (win) fl_xfocus = win;
+      if (win) {
+#ifdef __APPLE__
+       if (fl_xfocus != win) Fl_X::i(win)->set_key_window();
+#endif
+       fl_xfocus = win;
+       }
     }
     // take focus from the old focused window
     fl_oldfocus = 0;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to