Working a bit with installers

Carlos Lozano clozano at andago.com
Wed May 28 16:15:24 CDT 2003


El mié, 28 de may de 2003, a las 18:11, Carlos Lozano escribio:
> 
> Changing the line:
> dlls/x11drv/windows.c
> 
> inline static BOOL is_window_managed( WND *win )
> {
>     if (!managed_mode) return FALSE;
>     /* tray window is always managed */
>     if (win->dwExStyle & WS_EX_TRAYWINDOW) return TRUE;
>     /* child windows are not managed */
>     if (win->dwStyle & WS_CHILD) return FALSE;
>     /* tool windows are not managed */
>     if (win->dwExStyle & WS_EX_TOOLWINDOW) return FALSE;
>     /* windows with caption or thick frame are managed */
>     if ((win->dwStyle & WS_CAPTION) == WS_CAPTION) return TRUE;
>     if (win->dwStyle & WS_THICKFRAME) return TRUE;
>     /* default: not managed */
>     return FALSE; 
>    ^^^^^^^^^^^^^^
> with
> 
>     return TRUE;

After of some tests, it looks like better:

dlls/x11drv/windows.c

inline static BOOL is_window_managed( WND *win )
{
    if (!managed_mode) return FALSE;
    /* tray window is always managed */
    if (win->dwExStyle & WS_EX_TRAYWINDOW) return TRUE;
    /* child windows are not managed */
    if (win->dwStyle & WS_CHILD) return FALSE;
    /* tool windows are not managed */
    if (win->dwExStyle & WS_EX_TOOLWINDOW) return FALSE;
    /* windows with caption or thick frame are managed */
    if ((win->dwStyle & WS_CAPTION) == WS_CAPTION) return TRUE;
    if (win->dwStyle & WS_THICKFRAME) return TRUE;

    /* Tested with Praetoriam demo & VTD Amaril installer */
    if ((win->dwStyle & (WS_CLIPSIBLINGS|WS_CLIPCHILDREN) ) ==
        (WS_CLIPSIBLINGS|WS_CLIPCHILDREN))
	   return TRUE;  
    /******************************************************/
    
    /* default: not managed */
    return FALSE;

Regards,
Carlos.

-- 
 ___         _          \  |  /  Consulting
| . |._ _  _| | ___  ___  ___    http://www.andago.com
|   || ' |/ . |<_> |/ . |/ . \__ GNU/Linux
|_|_||_|_|\___|<___|\_. |\___/     _ \  __|\ \  /
 Carlos A. Lozano   <___'/ | \ -_) __/\__ \ >  <  -_)
 [ carlos.lozano at andago.com ]\___|_|  ____/ _/\_\___|
 [ calb at epsxe.com           ]  http://www.ePSXe.com



More information about the wine-devel mailing list