On 30 Oct 2012, at 09:52, leowang wrote:

> Dear All,
> I have two process named A and B, and each has a window. I run process A 
> first, then run process B. Now only window B can receive key events, then I 
> called XMapRaised in process B to set Window A to X stack top, after that 
> only window A can receive key events, then I called XMapRaised in process A 
> to set Window B to X stack top, the Window B can receive key events.

Can you post a minimal, complete, compilable example that manifests the failure?

I can't tell from your description what it is you are doing, and hence why it 
might fail.

I suspect there is an issue with modality of your windows, but we need to see 
your code to know.

In particular, I'm curious why you are using XMapRaised to alter the z-order of 
the windows; that is unnecesary. It should only be necessary to call show() on 
the window to raise it to the top of the stack, and I wonder whether bypassing 
fltk's built-in mechanisms and making platform specific calls is breaking 
things...





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

Reply via email to