[x11drv] Fix X11DRV_set_wm_hints
Maxime Bellengé
maxime.bellenge at wanadoo.fr
Mon Mar 7 15:09:23 CST 2005
Resent without MWM_FUNC_RESIZE as indicated by Dmitry Timoshkov
Short story:
- Fix unmovable windows if the window style is set to WS_POPUP |
WS_VISIBLE and WS_EX_APPWINDOW
- Fix metacity displaying decorations where it should not.
Long story:
I have two different applications where I can't move the window.
These applications completely skin each of their windows.
Their main window resources are defined like this :
IDD_TRANSPARENTDIALOG_DIALOG DIALOGEX 0, 0, 292, 184
STYLE WS_POPUP | WS_VISIBLE
EXSTYLE WS_EX_APPWINDOW
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "&Close",IDC_CLOSE,249,6,33,12
END
To move a window they call PostMessage( WM_NCLBUTTONDOWN, HTCAPTION,
MAKELPARAM( point.x, point.y)); on a WM_LBUTTONDOWN message.
This patch adds MWM_FUNC_MOVE when WS_EX_APPWINDOW.
Now the windows are movable.
This patch adds another WM test. These windows must not have
decorations. Fluxbox does not display any however metacity displays
them. Actually, if a style like MWM_DECOR_MINIMIZE is set, metacity
displays the whole decorations whereas fluxbox doesn't. In Windows, if
you set WS_MINIMIZEBOX without WS_CAPTION, the caption is not displayed.
So I changed the code to only set MWM_DECOR_MINIMIZE,
MWM_DECOR_MAXIMIZE, MWM_DECOR_MENU if WM_CAPTION is set.
Changelog:
- Fix unmovable windows if the window style is set to WS_POPUP |
WS_VISIBLE and WS_EX_APPWINDOW (thanks to Mike Hearn)
- Fix metacity displaying decorations where it should not.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win2.patch
Type: text/x-patch
Size: 1916 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050307/0f5a6d6f/win2.bin
More information about the wine-patches
mailing list