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

Alexandre Julliard julliard at winehq.org
Thu Jan 19 14:56:54 CST 2012


Module: wine
Branch: master
Commit: c0cf49d50c3c7e18f0d39ada3f6679f8a6b08b17
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c0cf49d50c3c7e18f0d39ada3f6679f8a6b08b17

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Jan 19 18:28:00 2012 +0800

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

---

 dlls/winex11.drv/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index e6affcb..48ba000 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -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),




More information about the wine-cvs mailing list