x11drv: Allow WM to manage more windows.
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Jan 14 07:37:28 CST 2006
"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[7];
> + 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.
--
Dmitry.
More information about the wine-devel
mailing list