http://bugs.winehq.org/show_bug.cgi?id=12437
--- Comment #3 from Kirurgs edzis@inbox.lv 2008-04-08 16:01:04 --- Sorry about severity, I was on a hurry when wrote report :( Regression test might be too time consuming for me now... I can't promise anything :( If I'll have time, I'll try...
More on this issue: First I submited a bug to compiz-fusion team, coz window was disappearing only with compiz, but not that fast as now with 0.9.59, it was kinda after 3 mins or so... I hadn't issue with Metacity at that time. That was on wine < 0.9.58.
Other strange thing: that tool (plsqldev) has child windows, switching between them causes whole big main window to minimize (or close?: to me it seems more close than minimize, coz in compiz I defined special effect on window close and it was triggered while switching between child windows) and maximize, which I find odd. I guess that might be an answer to the issue: if child window closes and wine thinks that main window is closed, it will unmap it, but that place is taken by other child window which is not registered as main or so (I'm not sure about terminology as I haven't had time to check wine source).
The good thing is that now I'm working with 0.9.47 and everything is fine, that is: window is not disappearing in metacity or compiz and child window switching happens as it should (there's no main window minimize (close) or maximize while changing child ones).
Hope this helps.