Vitaliy Margolen : winex11.drv: Popup windows with system menu are
managed.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 13 11:07:57 CST 2007
Module: wine
Branch: master
Commit: abcbcc35da3b6800494bd908aa7294294c90708c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=abcbcc35da3b6800494bd908aa7294294c90708c
Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date: Sat Feb 10 10:40:50 2007 -0700
winex11.drv: Popup windows with system menu are managed.
---
dlls/winex11.drv/window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 3f67069..38da952 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -86,10 +86,13 @@ inline static BOOL is_window_managed( HW
if (style & WS_THICKFRAME) return TRUE;
/* application windows are managed */
if (ex_style & WS_EX_APPWINDOW) return TRUE;
- /* full-screen popup windows are managed */
if (style & WS_POPUP)
{
RECT rect;
+
+ /* popup with sysmenu == caption are managed */
+ if (style & WS_SYSMENU) return TRUE;
+ /* full-screen popup windows are managed */
GetWindowRect( hwnd, &rect );
if ((rect.right - rect.left) == screen_width && (rect.bottom - rect.top) == screen_height)
return TRUE;
More information about the wine-cvs
mailing list