[Bug 1272] - SW_SHOWMINIMIZED bug

wine-bugs at winehq.com wine-bugs at winehq.com
Mon Feb 10 11:47:02 CST 2003


http://bugs.winehq.com/show_bug.cgi?id=1272





------- Additional Comments From andi at rhlx01.fht-esslingen.de  2003-02-10 11:47 -------
Whoa, that was fast!

I've also been looking at this bug, and I found something different:

I have used Win98 notepad.exe in a desktopified Wine environment for testing.
I started it, minimized notepad, and watched in amazement as it totally
disappeared (no icon anywhere!).
So in fact I uncovered a second bug while investigating that bug. Cool, huh?

Call trace:

X11DRV_ShowWindow
  WINPOS_MinMaximize(hwnd, SW_MINIMIZE, &newPos)
    GetWindowPlacement(hwnd, &wpl)
      WINPOS_InitInternalPos()
    WINPOS_FindIconPos(wndPtr, wp l.ptMinPosition [-1, -1]);
      (rectParent 0/0 - 1400/1050: desktop window!)
    SetRect(newPos, wpl.ptMaxPosition.x, wpl.ptMaxPosition.y,
GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON); --> 21/1596 - 32/32
---> WAY below
    Wine Desktop window!!!!

What seems to happen is that WINPOS_InitInternalPos returns -1, -1
(no position information stored yet for window).

WINPOS_FindIconPos can't deal with -1, -1 properly, it seems.

I tried your patch to check whether it'd also fix this issue,
but it doesn't.
Any idea about my problem?

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=1272>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.



More information about the wine-bugs mailing list