On 11/14/25 16:09 holm.h...@... wrote:
> I open several subwindows in my program:
> win1 = Fl_Window(..);
> win2 = Fl_Window(..);
You should really be more precise with the code you post to request help.
> later in my program I can show first win1, then show win2.
> win2 will then show/over win1.
>
> However win1 can still catch mouse-events - even if it is below
> another window.
How does it "catch mouse-events" ?
> I guess I have done something wrong here. Any hints ?
Well, I must guess too. If you want to open two distinct windows you
must call end() on the first window before you create the 2nd window.
Otherwise the 2nd window will become a subwindow of the first window -
which seems to be the case in your program.
If this doesn't help, please post more code, ideally a small but full
(i.e. compileable) program so we can test and find the cause.