[comp.windows.x] Problem with xterm: creates unmapped windows

mickey@altos86.Altos.COM (Michael Thompson) (02/20/90)

I am working on porting the X11R4 release to a machine running Altos System V.
I am using an HDS X-terminal as a server. I have progressed far enough that
I am able to run clients like xcalc, xclock, bitmap, etc. Even twm works
fine. However, I am having problems getting xterm to work properly. 

Although I am running a SYSV o.s., I am unable to use the standard system V
ptys (ptem), since altos does not support them. Instead I have altered
xterm to use the same ptys that rlogind uses (similar to those used by
the Cray). This is the only thing I have done to the R4 xterm.

When I start an xterm from another terminal, xterm connects to the server
and forks a shell on a free pty.

    root 16405 16342  0 12:18:27 p00  0:00 ./xterm -ls 
    root 16407 16405  0 12:18:34 p01  0:00 -sh 

The window is created; I can do an xlswins to determine the window ID.
But nothing shows up on the X-terminal. The problem seems to be that the
window that is created by xterm is unmapped.  An "xwininfo -name xterm -all"
gives:

Xlib:  extension "SHAPE" missing on display "144.1.11.4:0.0".

xwininfo ==> Window id: 0x80000d (xterm)

         ==> Root window id: 0x8006d (has no name)
         ==> Parent window id: 0x8006d (has no name)
         ==> Number of children: 0

         ==> Absolute upper-left X:  1
         ==> Absolute upper-left Y:  1
         ==> Relative upper-left X:  0
         ==> Relative upper-left Y:  0
         ==> Width: 484
         ==> Height: 316
         ==> Depth: 8
         ==> Border width: 1
         ==> Window class: InputOutput
         ==> Colormap: 0x80065 (installed)
         ==> Window Bit Gravity State: NorthWestGravity
         ==> Window Window Gravity State: NorthWestGravity
         ==> Window Backing Store State: NotUseful
         ==> Window Save Under State: no
         ==> Window Map State: IsUnMapped
         ==> Window Override Redirect State: no
         ==> Corners:  +1+1  -537+1  -537-705  +1-705

         ==> Bit gravity: NorthWestGravity
         ==> Window gravity: NorthWestGravity
         ==> Backing-store hint: NotUseful
         ==> Backing-planes to be preserved: 0xffffffff
         ==> Backing pixel: 0
         ==> Save-unders: No

         ==> Someone wants these events:
             ==> EnterWindow
             ==> LeaveWindow
             ==> StructureNotify
             ==> FocusChange
         ==> Do not prograte these events:
         ==> Overide redirection?: No

         ==> Window manager hints:

             ==> Client accepts input or input focus: Yes
             ==> Initial state is Normal State

         ==> Normal window size hints:

             ==> Program supplied size: 484 by 316

         ==> No zoom window size hints defined

What does the Xlib message about the extension SHAPE mean?  Just that
it does not support a feature introduced in R4?

Why would the window be unmapped?

Any ideas? Thanks in advance!

					Michael Thompson
					mickey@altos.Altos.COM