Re: How to remove window borders?

New Message Reply Date view Thread view Subject view Author view

Simon Hui (shui++at++rico.asd.sgi.com)
Wed, 24 Jul 96 23:56:03 -0700


> From: jaf++at++chem.ucsd.edu (Jeremy Friesner)
> Subject: How to remove window borders?
>
> Now we need to open another window using XCreateWindow(),
> in such a way that its title bar and sizing edges
> are invisible in the same fashion.

Here's a fragment from a program that does it:

    if (fullscreen) {
        /* turn off window decorations */
        Atom hints_atom;
        MotifWmHints hints;

        hints_atom = XInternAtom( dpy, "_MOTIF_WM_HINTS", 0 );
        hints.flags = MWM_HINTS_DECORATIONS;
        hints.decorations = 0;
        XChangeProperty( dpy, window, hints_atom, hints_atom, 32,
                         PropModeReplace, (unsigned char*)&hints, 5 );
    }

Simon

simon w. hui iris performer
shui++at++sgi.com advanced systems div

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:53:13 PDT

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