Re: how to get a window's name which contains compound text?

2003-10-17 Thread Alan Coopersmith
wjd wrote:
   I works on redhat8,how can i get a window's name which contains a compound 
 text in X11 program?
   I has tried:
   XGetWindowProperty(Display*,Window,XA_WM_NAME,0,(long)BUFSIZ,
   False,XA_STRING,actual_type,actual_format,
   nitems,leftover,return_data);
   it return Success,but return_data is empty, this problem also exist when i 
 wnat to get _NET_WM_NAME property.

Have you tried code like the bits recently checked in to
xwininfo in the XFree86 CVS?  Take a look at:

http://cvsweb.xfree86.org/cvsweb/xc/programs/xwininfo/xwininfo.c.diff?r1=1.9r2=1.10

-- 
-Alan Coopersmith- [EMAIL PROTECTED]
 Sun Microsystems, Inc.- Sun Software Group
 User Experience Engineering: G11N: X Window System


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Re: how to get a window's name which contains compound text?

2003-10-17 Thread wjd
Thank for your reply,i has run xwininfo directly,it told me this window has no name.I 
just try xprop,i find it will export correct window name,could you tell where to get 
the newest code of xprop?
Thanks

wjd wrote:
  I works on redhat8,how can i get a window's name which contains a compound 
 text in X11 program?
  I has tried:
  XGetWindowProperty(Display*,Window,XA_WM_NAME,0,(long)BUFSIZ,
  False,XA_STRING,actual_type,actual_format,
  nitems,leftover,return_data);
  it return Success,but return_data is empty, this problem also exist when i 
 wnat to get _NET_WM_NAME property.

Have you tried code like the bits recently checked in to
xwininfo in the XFree86 CVS?  Take a look at:

http://cvsweb.xfree86.org/cvsweb/xc/programs/xwininfo/xwininfo.cdiff?r1=1.9r2=1.10

-- 
-Alan Coopersmith- [EMAIL PROTECTED]
 Sun Microsystems, Inc.- Sun Software Group
 User Experience Engineering: G11N: X Window System


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

 
 
wjd
[EMAIL PROTECTED]
2003-10-18





___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel