lear@turbo.bio.net (Eliot) (02/07/91)
Hardware: Sun 3 OS Version: SunOS 4.1.1 Compiler: CC and gcc 1.35 Server Version: X11R4 patchlevels 9 and 19 TWM Version: (same) (but see below) This is about the weirdest problem that I've seen under X. One of our programmers is developing an application under XVT, which uses Motif, which uses Xt. He is running into a situation where XtWindowToWidget is returning NULL, when he uses TWM. Everything works just fine when he uses MWM. But wait, it gets a little weirder. A table might help explain things: Server/Compiler WM Results ------------------------------------------------ Sun3 R4.19/cc(switch) or gcc mwm works fine Sun4 R4.19/cc twm works fine Visual R3?/? twm works fine Sun3 R4.19/cc(switch) twm XtWindowToWidget returns NULL Sun3 R4.19/gcc twm XtWindowToWidget returns NULL Sun3 R4.19/(either) twm(gcc) other problems Sun3 XNews (2.0) twm XtWindowToWidget returns NULL With the Visual, the Sun3 R4 twm interacted with the program just fine. The problem seems to be some problem between the Sun 3 servers and twm. Without delving into mwm's code, my guess is that it is able to return the correct results by handling the request in question in a different manner than twm. Anybody care to take a stab at what is going on? Thanks for any and all input, -- Eliot Lear [lear@turbo.bio.net]