On Mon, 12 May 2003 15:07:13 +0530, Gurinder Singh Chhabra <gschhabra networkprograms com> said: > Hi All, > > I want to hide the title bar of the window I create using XCreateWindow api. > Can some one tell me how can achive the same. > I got a hint of this by using XSetTransientForHint api but this is not > going to help me as what I got with this is to hide the Maximize button > of my window. > Can someone help me in solving this probelm. In general, the best you can do is supply a hint and hope it works. The problem is that the actual "what titlebar, if any, to use" decision is made by your window manager, not your program - and there's no one *universal* standard way for programs to give the hints. So you have tvm, twvm, Gnome, KDE, Enlightenment, Sawfish, CDE, and zillions of others. Good Luck. (You could always cheat, and ignore resize events generated by the Maximize button - easily identified by the fact you're resizing to the max rather than to some semi-random non-max size. People will learn quickly enough that maximizing the window takes up all the real estate but leaves the actual visible bits up in one corner and nothing in the rest of the screen). You didn't say what your application is - you may want to consider just ignoring resize requests entirely, or restrict what size you'll accept being. If "Maximize" is a problem, is there also a problem for somebody who uses the window manager's resizing handles to maximize it manually? -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech
Attachment:
pgpF8SJhPnJ1h.pgp
Description: PGP signature