[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1301.0. "event-programming, lower window" by BERN01::TRACHSEL () Fri Aug 18 1989 07:46

Hellow,

A customer asks me 2 X-11-programming questions (he just uses X11-MIT-Bdg. ,
no Toolkit/UIL etc.):

1) Event Handling: X11-events deal with mouse, keyboard, server-status,
   window-obscuring etc.

   He wants to access a digitizer from a asynch. port on his mach.

   When he is in the event-loop he is not sensitive for this asnch-
   Digitizer Input. Rsp. when he is waiting for asynch. Input he is not in
   the X11-event-loop...

   How to solve in a clever way...? I spoke with him about writing a
   second client who controlls the asynch-port, and then sends a event in 
   the main-clients queue. Is this something...?

2) When he does a XLowerWindow, his window disappears, when he does a raise
   it appears again. Why does the lower make disappear the window (because
   it is a single window on the root?). How to change?

Regards Peter Trachsel DEC Bern

T.RTitleUserPersonal
Name
DateLines
1301.1Getting caught by the pseudo-rootLBDUCK::SCHOELLERWho's on first?Fri Aug 18 1989 13:0819
Peter,

1) When you say digitizer, do you mean a tablet or a full table digitizer?
   If your customer wants to use a tablet, he can substitute one for the
   mouse.  If it is a table digitizer then the approach you recommend would
   probably work.

2) It sounds like your customer made his window an override redirect child
   of the servers root window.  If this is the case then the window is a
   sybling of the pseudo-root window (I think displayed by the session
   manager).  When he does a lower, it goes behind the pseudo-root.  Take
   a look at the code in Xfish for finding the visible root window (there
   has been some discussion of this code in ELKTRA::DW_EXAMPLES or
   HARBOR::DECWINDOWS_PROGRAMMING).  The clients window should be made a
   child of the pseudo-root window.

Viele Gr��e,
Dick