Re: [wmii] failure on startup

From: Kris Maglione <>
Date: Tue, 26 Jun 2007 13:07:50 -0400

On Tue, Jun 26, 2007 at 04:54:15PM +0000, Vladimir Chizhov wrote:
> btw: snapshot 20070516 works fine for me.

Actually, the snapshot is just silently wrong. When you set a property
on a window, Xlib requires that you specify the length of the array and
the size of the elements. Where the snapshot manually specified the
size, tip uses a macro that extract it via the sizeof operator. In the
snapshot, it tries to set an array of longs of size 4. Since they're
actually of size 8, each element of the array actually winds up taking
up two elements of the property, so you only actually set half of the
array, with half nonsense.

There are two things you can try. One is to call abort() before
xlib_errorhandler in main.c:/^errorhandler. The other is to run this and
tell me the result:

#include <stdio.h>
#include <X11/X.h>

main(void) {
        printf("Atom: %d\n", sizeof(Atom));
        return 0;

Kris Maglione
A RACF protected dataset is inaccessible.

Received on Tue Jun 26 2007 - 19:08:22 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:25:30 UTC