http://bugs.winehq.com/show_bug.cgi?id=48
------- Additional Comments From fgouget@codeweavers.com 2002-10-31 20:19 ------- The patch looks good to me so I'm sending it almost unchanged to wine-patches (giving proper credit of course).
The only change I'm making (and thus submitting separately) is for SM_CYMAXIMIZED. Actually I was wrong and it was still at -45 (I had based my calculation on 1400 instead of 1440). Now, why -45?
The reason is that this value is based on a default Win95 installation which has the 'Start Menu' at the bottom. But even on Windows the size of this menu bar can vary (the user can resize it), and I have even seen users put it on the side! On Linux it may be there or not be there depending on the Windows manager/desktop (Gnome/KDE). Similarly its size changes from distribution to distribution. So until we can query the window manager/desktop as to the actual size of the reserved area I think we should just hard-code SM_CYMAXIMIZED at 'height of screen + 2 borders', just like for SM_CXMAXIMIZED. And that's what I'm sending as the second patch.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://bugs.winehq.com/show_bug.cgi?id=48. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.