x11drv: Allow WM to manage more windows.
wine-devel at kievinfo.com
Sat Jan 14 13:12:07 CST 2006
Saturday, January 14, 2006, 6:37:28 AM, Dmitry Timoshkov wrote:
> "Vitaliy Margolen" <wine-patch at kievinfo.com> wrote:
>> @@ -67,6 +67,8 @@ static const char visual_id_prop =
>> inline static BOOL is_window_managed( HWND hwnd )
>> DWORD style, ex_style;
>> + char class_name;
>> + static const char menu_class = "#32768";
>> + /* menu windows are not managed */
>> + if (GetClassNameA(hwnd, class_name, sizeof(class_name)) &&
>> + !memcmp(class_name, menu_class, sizeof(menu_class)))
>> + return FALSE;
> This won't work for subclassed or custom (OfficeXP like) menus.
Yeah you are correct. And it looks like it's redundant anyway. I forgot
that all menus are WS_POPUP without WS_SYSMENU. And I already have a case
New patch sent.
More information about the wine-devel