winex11.drv: Desktop window is not resizable
Dmitry Timoshkov
dmitry at codeweavers.com
Mon May 19 00:09:36 CDT 2008
Hello,
Changelog:
winex11.drv: Desktop window is not resizable.
---
dlls/winex11.drv/window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 674afaa..4f8aae9 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -149,6 +149,8 @@ static BOOL is_window_rect_mapped( const RECT *rect )
static inline BOOL is_window_resizable( struct x11drv_win_data *data, DWORD style )
{
if (style & WS_THICKFRAME) return TRUE;
+ if (data->hwnd == GetDesktopWindow()) return FALSE;
+
/* Metacity needs the window to be resizable to make it fullscreen */
return (data->whole_rect.left <= 0 && data->whole_rect.right >= screen_width &&
data->whole_rect.top <= 0 && data->whole_rect.bottom >= screen_height);
--
1.5.5.1
More information about the wine-patches
mailing list