winex11: Set window style to normal for windows with a minimize box.

Some window managers don't allow minimizing dialog windows.
This commit is contained in:
Alexandre Julliard 2010-05-28 12:12:32 +02:00
parent c58eff621d
commit 8b84d64075
1 changed files with 1 additions and 0 deletions

View File

@ -1181,6 +1181,7 @@ static void set_wm_hints( Display *display, struct x11drv_win_data *data )
/* set the WM_WINDOW_TYPE */
if (style & WS_THICKFRAME) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_NORMAL);
else if (ex_style & WS_EX_APPWINDOW) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_NORMAL);
else if (style & WS_MINIMIZEBOX) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_NORMAL);
else if (style & WS_DLGFRAME) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_DIALOG);
else if (ex_style & WS_EX_DLGMODALFRAME) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_DIALOG);
else if ((style & WS_POPUP) && owner) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_DIALOG);