DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Pending]

Link: http://www.fltk.org/str.php?L2221
Version: 1.3-feature
Fix Version: 1.3.0 (r6951)


Here is a correction of the vanishing "About myprog" window bug.
In function do_queued_events of file src/Fl_cocoa.mm, put:

  //necessary so that after closing a non-FLTK window (e.g.,
Fl_Native_File_Chooser)
  //the front window turns key again
  if([NSApp keyWindow] == nil) {
    Fl_Window *w = Fl::first_window();
    if (w) {
      NSWindow *cw = (NSWindow*)Fl_X::i(w)->xid;
      if([cw isVisible] && ![cw isMiniaturized] && ([cw styleMask] &
NSTitledWindowMask) ) {
        if(![cw isKeyWindow]) {//always make Fl::first_window() the key window
          [cw makeKeyWindow];
        }
      } 
    }
  }
  NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask 

where the first and last lines indicate where this goes.


Link: http://www.fltk.org/str.php?L2221
Version: 1.3-feature
Fix Version: 1.3.0 (r6951)

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

Reply via email to