| X only has one event queue per display. XNextEvent() gives you the next event
on the queue, regardless of which window it came from. If you want to treat
all events the same no matter which window they came from, don't discriminate
based on the window ID in the event structure.
To cause updates to one window to occur on the other windows, you will have to
code your event processing so that you perform operations on all four windows,
whenever you do something.
--PSW
|
| Even simpler ... have one application that creates the four windows. When
the application recognizes that an event occurred in one of the windows, it
does the work to update the other windows.
That is effectively what debug does. You press the step button in the main
window, and Debug updates the SRC window to show the new source line, and
updates the OUT window with a new message.
Kevin
|