Alexandre Julliard : winex11: Don' t use a window manager border for a simple WS_BORDER-style border.

Alexandre Julliard julliard at winehq.org
Thu Oct 11 10:47:56 CDT 2007


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Oct 11 12:25:02 2007 +0200

winex11: Don't use a window manager border for a simple WS_BORDER-style border.

---

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

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 65baee3..20ffe06 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -147,8 +147,6 @@ static unsigned long get_mwm_decorations( DWORD style, DWORD ex_style )
     if (ex_style & WS_EX_DLGMODALFRAME) ret |= MWM_DECOR_BORDER;
     else if (style & WS_THICKFRAME) ret |= MWM_DECOR_BORDER | MWM_DECOR_RESIZEH;
     else if ((style & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME) ret |= MWM_DECOR_BORDER;
-    else if (style & WS_BORDER) ret |= MWM_DECOR_BORDER;
-    else if (!(style & (WS_CHILD|WS_POPUP))) ret |= MWM_DECOR_BORDER;
     return ret;
 }
 




More information about the wine-cvs mailing list