|
From: Dave D. <dde...@es...> - 2006-04-10 16:05:37
|
Daniel J Sebald <dan...@ie...> writes: > Ethan A Merritt wrote: >> On Sunday 09 April 2006 05:14 pm, Daniel J Sebald wrote: >> >>>For an X11 window there can't be two clients desiring the ButtonPress >>>event at the same times. >> >>> The external client that created the window may or may not have >>> requested ButtonPress via ButtonPressMask. >> That would clearly be a programming error. Why open a window for >> the purpose >> of displaying gnuplot output, and then fail to let gnuplot have access to the >> window events? > > Well, not necessarily. Maybe someone likes the cursor position > information but wants a button press to be interpreted by the parent > application to load some new data and replot. I don't know. It > boils down to what can accomplish. Can't defy X11 behavior. If > there were no documentation about this option, it would be likely > the programmer of the outside application might never understand the > problem even though it may be their "error". > I think another option is to create an InputOnly window over the output window. That will probably give you first dibs at any events. (Since it's a separate window, it can have different event flags.) However, if the user had a reason for denying you events, just forcibly taking them is probably not kosher. dd -- Dave Denholm <dde...@es...> http://www.esmertec.com |