gerard patel <[EMAIL PROTECTED]> wrote:

[...]
>I investigated further, without great success.
>It's difficult to trace since the end of the trace disappear, I ended up adding
>a sync() call at this point. What happens is that the main window (the one being
>disabled) get an UnmapNotify event almost immediately after the new size is set.
>That's incorrect as it's not what the program asked.
>If I comment only the line setting the min and max height,  the main window is not
>unmapped and the app works correctly.
>
>The only hack I found to eliminate the crash it to don't have min=max, for example :
>
>size_hints->min_width = wnd->rectWindow.right - wnd->rectWindow.left;
>size_hints->max_width = size_hints->min_width + 1;
>size_hints->min_height = wnd->rectWindow.bottom - wnd->rectWindow.top;
>size_hints->max_height = size_hints->min_height + 1;     
>
>No crash then...

I just can't believe! That means, that this code (already existing in x11drv), will
crash for you if, say, application shows "About" dialog and then will center it
relatively main window by SetWindowPos. Could you confirm it?

Though, this may mean, that wnd->rectWindow has wrong or just zero size for you.
If this is the case, then I couldn't help to trace it, it will be your job, sorry.

Dmitry.


Reply via email to