Re: Create a window without Minimize, Maximize, Restore buttons
Matthieu Herrb <[email protected]>
| Newsgroups | gmane.os.openbsd.x11 |
|---|---|
| Message-ID | <[email protected]> |
woapxp wrote: > Dear all, > To whom who have worked with X11 programming, I have been stuck in small > question and I cannot resolved it yet. Please give me a help if you have > dealt with this problem before. > > The question is: how to create a window (using X11 lib) without Minimize, > Maximize, Restore, buttons at the top-right of the created window; without > "X" icon at the top-left of the created window? > This is done via the window manager hints. See the XAllocSizeHints() manual page and the related functions. Also note that these are only hints to the window manager. Some of them will obey the hints, other wont. Most higher level toolkits (Gtk+, Qt, ...) have their own functions to manage the WM Hints and in this case you should avoid using Xlib directly. -- Matthieu Herrb