winex11.drv: Use dialog window type also for owned windows with WS_EX_DLGMODALFRAME style set.

This commit is contained in:
Dmitry Timoshkov 2012-01-19 18:28:00 +08:00 committed by Alexandre Julliard
parent 3dc4f259e9
commit c0cf49d50c
1 changed files with 1 additions and 1 deletions

View File

@ -1197,7 +1197,7 @@ static void set_wm_hints( Display *display, struct x11drv_win_data *data )
* only normal windows, and doesn't handle correctly TRANSIENT_FOR hint for
* dialogs owned by fullscreen windows.
*/
if ((style & WS_POPUP) && owner) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_DIALOG);
if (((style & WS_POPUP) || (ex_style & WS_EX_DLGMODALFRAME)) && owner) window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_DIALOG);
else window_type = x11drv_atom(_NET_WM_WINDOW_TYPE_NORMAL);
XChangeProperty(display, data->whole_window, x11drv_atom(_NET_WM_WINDOW_TYPE),