Re: Window Border

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose)
Fri, 5 Jan 1996 12:54:15 -0800


+>---- On Jan 5, 3:15pm, lelkins++at++relay.nswc.navy.mil wrote:
> Subject: Window Border
->
->I've got what (I hope) is a quick question...
->
->I'm rewriting a Performer application to work with an HMD. The
->HMD in question wants a particular video mode (645x486_30i).
->
->I used setmon to get into 645x486_30i, then pfuGLXWinopen to open a
->645x486 display.
->
->I had expected that if I asked for a window as large or larger than the
->root window, I would get a window with no border. However, I'm getting
->one. Looking at xwin.c, it appears that pfuGLXWinopen should default
->to no border. After fiddling a little more, I found that I get a border
->for all sizes up to 1280x1024. When I make a request that large, the
->border goes away... So is this an X thing where it does not recognize
->the reset window sizes automatically?
->
->Presumably, I need to use pfuGLXCreateWindow to specify a borderless
->window. I've looked through the archives and still haven't figured
->where to get the "pfuXWindow parent" parameter from given the Xdpy.
->Can someone point me in the right direction?
->
->Thanks from the X-challenged,

I assume that this is a Performer1.2 application.
In which case, the border of screen-size pfuGLX windows is removed with the
noXWindowDecoration() routine in /usr/src/Performer/src/lib/libpfutil/xwin.c:

static void
noXWindowDecoration(Display *dsp, Window w)
{
    MWMHints hints;

    /* get special atom for 4DWM motif window manager */
    if (!mwm_hints_atom)
        mwm_hints_atom = XInternAtom(dsp, "_MOTIF_WM_HINTS", FALSE);

    getMWMHints(dsp, w, &hints);
    hints.decorations = 0x0;
    hints.flags |= MWM_HINTS_DECORATIONS;
    XChangeProperty(dsp, w, mwm_hints_atom, mwm_hints_atom, 32,
        PropModeReplace, (unsigned char *)&hints, 4);
}

FYI, in Performer 2.0 you can request directly request windows with no borders.

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:14 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.