[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Working a bit with installers
From:       Carlos Lozano <clozano () andago ! com>
Date:       2003-05-28 21:15:24
[Download RAW message or body]

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@andago.com ]\___|_|  ____/ _/\_\___|
 [ calb@epsxe.com           ]  http://www.ePSXe.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic