gerard patel <[EMAIL PROTECTED]> wrote:
>If I test this patch with winedt (available from www.winedt.com), my
>X-server crashes when I try to load the Options dialog box. Winedt is a
>program written in Delphi I think; Borland has a very special system to
>simulate modal dialog boxes; I see the same problem with Bcb4.
I have downloaded WinEdt 5.1. But I didn't manage to crash it with my
patch. My WM is KDE 1.1.1. Although WinEdt doesn't crash for me, it
exhibits some flaws in the way Wine manages windows. For instance main
WinEdt window has only close box on it, though in Windows all three
standard buttons showed.
My patch adds another "feature": after any dialog box was shown, bitmap
on the system menu along with the sole close box on the main window caption
disappear and don't get restored after the main window was enabled back.
But I'm not a X programming expert, and I couldn't say what is happening wrong.
I just reused code, which already works in wine/windows/x11drv/wnd.c, lines 661-678,
and it worked fine for enabling/disabling windows in my test programs.
My experiments with replacing XGetWMSizeHints/XSetWMSizeHints by
XGetWMNormalHints/XSetWMNormalHints didn't change anything. Man page for them
doesn't mention any special tricks that could be used.
Dmitry.