Andreas Höschler wrote:
> Hi all,
> 
> now that the major issues are fixed I am going for the minor ones. :-)
> 
>>> • There seems to be a problem with window titles. They are often
>>> followed by an arbitrary numbers of garbage characters. It seems that
>>> terminating Null of a cString is missing.
>>
>>   It is reported as bug.
> 
> I had a look into the sources (Azalea: AZClient.m) but got stuck.
> 
> @interface AZClient: NSObject <AZWindow>
> {
>     Window  window;
>    ...
> }
> 
> #import <X11/Xlib.h>
> 
> #define PROP_GETS(win, prop, type, ret) (prop_get_string_##type(win,
> prop_atoms.prop, ret))
> 
> - (void)updateTitle
> {
>    ...
>     NSString *s = nil;
>     NSString *visible = nil;
> 
>     if (PROP_GETS(window, net_wm_name, utf8, &s))
>     {
>               // here s already is suffixed with garbage characters
> (sometimes)
>     }   
> }
> 
> Obviously PROP_GETS is a macro, but what is prop_get_string_##type?
> Google had no answer! I also looked into X11/Xlib.h but found nothing. :-(
> 
> Anybody with more insights into X11 and may be openbox has a clue?
> 

This is an easy one :-)

## is a not so new construct in the C compiler to concatenate two
identifiers at compile time to form a new one. So what you are looking
for is prop_get_string_utf8 and if you google for that you will fit it
in the prop.m file of Azalea.
Keep on asking this simple questions, it makes me feel better :-)

Cheers,
Fred


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à