Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: this is weird
- To: tlug@example.com, sstone@example.com
- Subject: Re: tlug: this is weird
- From: "Andrew S. Howell" <andy@example.com>
- Date: Sat, 23 May 1998 20:10:02 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: Text/Plain; charset=us-ascii
- In-Reply-To: Your message of "Sat, 23 May 1998 17:45:09 +0900 (JST)"<Pine.LNX.3.96LJ1.1b7.980523174258.10570a-100000@example.com>
- References: <Pine.LNX.3.96LJ1.1b7.980523174258.10570a-100000@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
>>>>> "Scott" == Scott Stone <sstone@example.com> writes: Scott> Why is it an insanely non-trivial task to set the titlebar Scott> text of a window in X? I'm using a library which does not Scott> use Xt, or Tk, or Motif. Basically it does: Scott> XOpenDisplay() gets DefaultScreen() gets DefaultVisual() Scott> gets DefaultDepth() gets RootWindow() calls XCreateWindow() Scott> calls XMapWindow() Scott> and then does framebuffer operations directly in the Scott> window... how do I set the titlebar text? Scott, As Marcus mentioned, you need to do this by way of the window manager. The simplest way is to give a -name parameter on the command line. To do it from within your program, you have to set the WM_NAME property on the window. I think you do this via the xlib function: XChangeProperty(display, w, property, type, format, mode, data, nelements) Display *display; Window w; Atom property, type; int format; int mode; unsigned char *data; int nelements; Where property is: Xatom.h:#define XA_WM_NAME ((Atom) 39) See the XGetWindowProperty man page for details. Andy -------------------------------------------------------------- Next TLUG Meeting: 13 June Sat, Tokyo Station Yaesu gate 12:30 Featuring Stone and Turnbull on .rpm and .deb packages Next Nomikai: (?) July, 19:30 Tengu TokyoEkiMae 03-3275-3691 -------------------------------------------------------------- Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
- Follow-Ups:
- Re: tlug: this is weird
- From: "Stephen J. Turnbull" <turnbull@example.com>
- References:
- tlug: this is weird
- From: Scott Stone <sstone@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: TLUG FTP [was Re: tlug: CentreCom/Allied Telesis LA-PCI-T
- Next by Date: Re: tlug: can't run X clients
- Prev by thread: tlug: this is weird
- Next by thread: Re: tlug: this is weird
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links