Alexandre Julliard : winex11:
Update the wm hints also when mapping a previously zero-size window.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 21 15:22:18 CDT 2007
Module: wine
Branch: master
Commit: a37a2fa4c5dc83c87288fbe8123c6dbf91a53895
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a37a2fa4c5dc83c87288fbe8123c6dbf91a53895
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Aug 21 21:38:20 2007 +0200
winex11: Update the wm hints also when mapping a previously zero-size window.
---
dlls/winex11.drv/winpos.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index eb615c6..5499ef0 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -397,23 +397,22 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
{
/* window got shown, map it */
TRACE( "mapping win %p\n", hwnd );
- X11DRV_sync_window_style( display, data );
- X11DRV_set_wm_hints( display, data );
- wine_tsx11_lock();
- XMapWindow( display, data->whole_window );
- XFlush( display );
- wine_tsx11_unlock();
mapped = TRUE;
}
else if ((swp_flags & (SWP_NOSIZE | SWP_NOMOVE)) != (SWP_NOSIZE | SWP_NOMOVE))
{
/* resizing from zero size to non-zero -> map */
TRACE( "mapping non zero size or off-screen win %p\n", hwnd );
+ mapped = TRUE;
+ }
+ if (mapped)
+ {
+ X11DRV_sync_window_style( display, data );
+ X11DRV_set_wm_hints( display, data );
wine_tsx11_lock();
XMapWindow( display, data->whole_window );
XFlush( display );
wine_tsx11_unlock();
- mapped = TRUE;
}
SetRect( &old_screen_rect, 0, 0, screen_width, screen_height );
if (fullscreen_state_changed( data, &old_client_rect, &old_screen_rect, &new_fs_state ) || mapped)
More information about the wine-cvs
mailing list