[comp.windows.x] Problems setting Window Manager hints

bill@polygen.uucp (Bill Poitras) (04/30/91)

I have a a programs that our company has developed.  I want to make it
ICCCM compliant.  I use the following code to the input focus flag to
true:
    {
    XWMHints wm_hints;
    /* set the window manager hints */
    wm_hints.input = TRUE;
    wm_hints.initial_state = NormalState;
    wm_hints.flags = InputHint|StateHint;
    result = XSetWMHints( display, new_frame->prim_window_id, &wm_hints);
    }

When I am running my application, and I run 'xwininfo -wm' and then use
the mouse the point to it, xwininfo gives me this:
xwininfo ==> Window id: 0xb0006e (CENTRUM:  Release 3.3)

         ==> Window manager hints:


For xterm, it gives me this:
xwininfo ==> Window id: 0x80000d (xterm)

         ==> Window manager hints:

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

For a client which doesn't set any window manager hints I get:
xwininfo ==> Window id: 0xc0005c (xv Tour1.gif)

         ==> No window manager hints defined

Also when I run my app under the Open-look window manager (olwm) under
X11R4 (patchlevel 18), it doesn't get input focus.  

OK, so what is up.  Why does my application give a "null" list of window
manager hints.  Does is have to do with events, the order in which I set
my properties?  Any help would greatly be appreciated.

+-----------------+---------------------------+-----------------------------+
| Bill Poitras    | Polygen Corporation       | {princeton mit-eddie        |
|     (bill)      | Waltham, MA USA           |  bu sunne}!polygen!bill     |
|                 | FAX (617)890-8694         | bill@polygen.com            |
+-----------------+---------------------------+-----------------------------+