Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: this is weird



Scott Stone writes:
 > 
 > Why is it an insanely non-trivial task to set the titlebar text of a
 > window in X?  I'm using a library which does not use Xt, or Tk, or Motif.
 > Basically it does:
 > 
 > XOpenDisplay()
 > gets DefaultScreen()
 > gets DefaultVisual()
 > gets DefaultDepth()
 > gets RootWindow()
 > calls XCreateWindow()
 > calls XMapWindow()
 > 
 > and then does framebuffer operations directly in the window... how do I
 > set the titlebar text?
Isn`t the titlebar set by the windows manager. In that case there
should be some functions that can talk to the manager. Don`t ask me
what they are. You might want to look at some source codes. I guess it 
could also be that the manager reads the title from the window
structure.
Ok I found it:

       XSetWMName, XGetWMName, XStoreName, XFetchName - set or
       read a window's WM_NAME property

Marcus

----------------------------------------------------------------------------
Dr. Marcus Metzler
Department of Physics    | $B")(B $B#2#7#4!<#8#5#1#0(B
Toho University          | $B@example.com)A%66;T;0;3#2!<#2!<#1(B
Miyama 2-2-1, Funabashi, | $BElK.Bg3X(B  $BM}3XIt(B  $BJ*M}(B
Chiba 274-8510           | 
Japan			 |
e-mail : mocm@example.com
----------------------------------------------------------------------------

--------------------------------------------------------------
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

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links