Hmm, I don't have a mac here to test, but this WinXP box seems to be OK.
Well, maybe...
Evan, is this code I wrote actually testing the symptom you describe?
What does it do on your setup?
------------------------
// fltk1-3-config --compile test.cxx
/* Make window handle "noisy" for test purposes */
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/names.h>
class Noisy_win : public Fl_Double_Window {
int id_;
public:
Noisy_win(int ID, int X, int Y, int W, int H, const char *L = 0)
: Fl_Double_Window(X, Y, W, H, L) {
id_ = ID;
}
int handle(int ev) {
printf("%d: %s\n", id_, fl_eventnames[ev]); fflush(stdout);
return Fl_Double_Window::handle(ev);
}
};
static Fl_Button *exit_bt=(Fl_Button *)0;
static Noisy_win *fw1=(Noisy_win *)0;
static Noisy_win *fw2=(Noisy_win *)0;
static void cb_exit_bt(Fl_Button*, void*) {
if(fw1) fw1->hide();
if(fw2) fw2->hide();
}
int main(int argc, char **argv) {
fw1 = new Noisy_win(1, 100, 100, 261, 209, "First Window");
exit_bt = new Fl_Button(180, 155, 75, 40, "Exit");
exit_bt->callback((Fl_Callback*)cb_exit_bt);
fw1->end();
fw1->callback((Fl_Callback*)cb_exit_bt);
fw2 = new Noisy_win(2, 380, 100, 280, 280, "Second Window");
fw2->end();
fw2->callback((Fl_Callback*)cb_exit_bt);
fw2->show(argc, argv);
fw1->show();
Fl::focus(fw1);
return Fl::run();
}
/* end of file */
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev