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?

Thanks,

   Andreas


BTW. This seems to be a general issue with X. As far as I remember 
Window Maker had no problem with attached garbage characters but 
thererefore was not able to present non-ascii (0..127) strings. :-(


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

Répondre à