http://bugs.winehq.org/show_bug.cgi?id=15069
Summary: Delphi 5 app won't minimize and extra caption bar shows Product: Wine Version: 1.1.2 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: pgr@arcelectronicsinc.com
Delphi 5 app won't minimize 8d77c375b27adc490d24d7593769f4e149d4102c is first bad commit commit 8d77c375b27adc490d24d7593769f4e149d4102c Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 31 12:08:38 2008 +0200
winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/restore a window. Ubuntu 7.10 32 bit
The current HEAD still is affected.
Also when switching desktop pages to a different page the app's moves to the new page and then most of the time stays on that page. It also now has second window top status bar only partially is covered by the app's window. This bar has an icon on the left caption which is the exe's base name in the center and the X icon on the right. Closing either closes both. One of my Delphi 3 based app's minimizes but changing pages has the very narrow status bar move to the new page. These caption bars show int the pager preview.
http://bugs.winehq.org/show_bug.cgi?id=15069
Paul Romanyszyn pgr@arcelectronicsinc.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
--- Comment #1 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-08-30 00:31:40 --- I will try to find/make a small program that shows this problem.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2008-08-30 00:59:02 --- You can use one from bug 15062. Should show the same problem. Also I'm not sure if the regression testing was correct or not. Both bugs talk about the same exact problem (or two different manifestations of it).
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #3 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-08-30 09:33:13 --- Created an attachment (id=15742) --> (http://bugs.winehq.org/attachment.cgi?id=15742) Extra caption bar after desktop page change
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #4 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-08-30 09:36:29 --- Tested with wine-1.1.2-121-g31b4061 and minimize and virtual page changing work. at 87d77c3 minimize pops back up and after changing desktops the result is attached in comment 3
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #5 from Kirurgs edzis@inbox.lv 2008-09-06 16:52:00 --- I think all Delphi (not just 5) applications are affected. Deplhi apps are some special case. PL/SQL Developer is affected too. Wine 1.1.4 doesn't solve the issue.
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |geist1@sms.at
--- Comment #6 from Austin English austinenglish@gmail.com 2008-09-08 15:36:07 --- *** Bug 14960 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |elring@seznam.cz
--- Comment #7 from Austin English austinenglish@gmail.com 2008-09-11 17:37:56 --- *** Bug 15244 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Thomas tagrain@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tagrain@gmail.com
--- Comment #8 from Thomas tagrain@gmail.com 2008-09-21 05:10:50 --- *** Bug 15328 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |guillaume.melquiond@gmail.co | |m
--- Comment #9 from Austin English austinenglish@gmail.com 2008-09-23 18:36:53 --- *** Bug 15386 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #10 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-10-12 13:53:18 --- Created an attachment (id=16608) --> (http://bugs.winehq.org/attachment.cgi?id=16608) Using ShowWindow not sendmessagew for min max and restore
Reverting changes that caused the regression make delphi apps happy. I don't know enough about the internals to determine why sendmessagew is better then showwindow
Search via google of "delphi top level form hidden tapplication" give some info as to why delphi apps are affected by this regression. http://www.delphicorner.f9.co.uk/articles/apps7.htm Showmessage bypasses the code in TApplication the hidden top level form.
From Mastering Delphi 3 by Morco Cantu chapter 10 states that the tapplicaion
form is of popup type and is hidden.
All messages go to this window and it monitors the messages and passes what is needed to the main form's window.
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=15069
Kirurgs edzis@inbox.lv changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |edzis@inbox.lv
--- Comment #11 from Kirurgs edzis@inbox.lv 2008-11-06 06:04:43 --- Hmm, I wonder how this is still unconfirmed. I have workaround similar to Paul Romanyszyn's one, this ain't fix so I'm not posting it. It has some minor glitch, after I make my workadound apps won't minimize to systray :(
Anybody here?
http://bugs.winehq.org/show_bug.cgi?id=15069
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #12 from Lei Zhang thestig@google.com 2008-11-06 13:23:17 --- confirming then
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |felix.saphir@presswatch.de
--- Comment #13 from Austin English austinenglish@gmail.com 2008-12-26 15:37:46 --- *** Bug 15062 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jbysmith@yahoo.com
--- Comment #14 from Austin English austinenglish@gmail.com 2008-12-26 15:38:13 --- *** Bug 15207 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #15 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-12-26 16:50:57 --- Should this regression be consider a a target for 1.2 as it affects a number of applications and affected app's are not usable as they won't stay on the current desktop when you switch desktops.
http://bugs.winehq.org/show_bug.cgi?id=15069
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |major
http://bugs.winehq.org/show_bug.cgi?id=15069
Stuart Middleton Stuart@houseofanime.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Stuart@houseofanime.org
--- Comment #16 from Stuart Middleton Stuart@houseofanime.org 2009-01-19 14:59:51 --- I believe that the absence of the minimize button for DVD Profiler (a Delphi developed app) is related to this bug. Note that the minimize button was present during recent versions of Wine, but has vanished again (note sure what version this happened for, but the minimize button is not present in 1.1.13).
If anyone thinks that tis is a separate issue, I'll raise a new bug.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #17 from Kirurgs edzis@inbox.lv 2009-01-27 16:24:10 --- Is there a change getting this solved in Wine 1.2? This is quite nasty bug as bunch of Delphi apps are affected :(
http://bugs.winehq.org/show_bug.cgi?id=15069
Alex Stanev alex@stanev.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@stanev.org
http://bugs.winehq.org/show_bug.cgi?id=15069
Salem, Nick nickhsalem@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nickhsalem@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #18 from Alex Stanev alex@stanev.org 2009-03-12 09:03:30 --- Tried the Paul's patch against 1.1.16 and it solves the issue with PL/SQL Developer application.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #19 from Paul Romanyszyn pgr@arcelectronicsinc.com 2009-05-15 13:04:08 --- Retested with wine-1.1.21-166-g644f576 using bug15062 exe
Minimize does work but when restoring the hidden window shows as a 5 pixel wide by caption bar high width no way to restore the real window to the correct size.
I am not sure how to handle this. 1. close this and make a new bug but then all of the dup's need to follow. 2. Change the summary to remove minimize or use bug 15062 description. 3. Leave summary as is.
I addition when switching desktops the app is now minimize on the new desktop(changes desktop) One of myl Delphi 5 app's can be restored by clicking on the task bar. Using Alt-Tab only brings the hidden window to the front
http://bugs.winehq.org/show_bug.cgi?id=15069
redneb@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |redneb@gmx.com
http://bugs.winehq.org/show_bug.cgi?id=15069
diafero@arcor.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |diafero@arcor.de
--- Comment #20 from diafero@arcor.de 2009-06-24 14:49:45 --- *** Bug 16486 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #21 from diafero@arcor.de 2009-06-24 14:50:48 --- I can confirm the issue for wine 1.1.24 (see the duplicate I marked above)
http://bugs.winehq.org/show_bug.cgi?id=15069
diafero@arcor.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org
--- Comment #22 from diafero@arcor.de 2009-06-24 14:53:33 --- Adding author of patch to CC list (according to the wiki this is common policy for regressions where the commit is identified)
http://bugs.winehq.org/show_bug.cgi?id=15069
Adri hello.adri@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hello.adri@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15069
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kennybobs@o2.co.uk
http://bugs.winehq.org/show_bug.cgi?id=15069
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #23 from André H. nerv@dawncrow.de 2009-07-13 08:55:39 --- *** Bug 19302 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source URL| |http://getfirefox.com/
--- Comment #24 from Ken Sharp kennybobs@o2.co.uk 2009-07-13 10:01:31 --- Also affects Firefox, so source is available.
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Delphi 5 app won't minimize |Firefox / Delphi 5 app |and extra caption bar shows |won't minimize and extra | |caption bar shows
--- Comment #25 from Austin English austinenglish@gmail.com 2009-07-13 10:41:53 --- Adding firefox to title.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #26 from Felix Saphir felix.saphir@presswatch.de 2009-07-13 16:28:26 --- (In reply to comment #10)
[http://www.delphicorner.f9.co.uk/articles/apps7.htm]
All messages go to this window and it monitors the messages and passes what is needed to the main form's window.
After investigating this a little, it seems that the hidden application window does *not* pass WM_SYSCOMMAND with parameter SC_MINIMIZE (or SC_RESTORE) to ShowWindow, as one might expect.
Instead, both messages are passed on to a) either DefWindowProc (which is DefWindowProcA from user32.dll) or b) an internal wrapper around ShowWindow, that disables animation via SystemParametersInfo(SPI_SETANIMATION, ...) for that call to ShowWindow. I never saw the latter happen during my debugging.
I'm under the impression, that restoring the window is the problem, while minimizing seems to work fine. Using the Application.HookMainWindow() as suggested in the Delphi Corner article (thanks for that!), it's possible to handle the SC_RESTORE message in a procedure like this:
| if ((msg.WParam and $FFF0) = SC_RESTORE) then | begin | // restore "hidden" form: | ShowWindow( Application.Handle, SW_NORMAL ); | // restore MainForm: | ShowWindow( Application.MainForm.Handle, SW_NORMAL ); | // hide "hidden" form again | ShowWindow( Application.Handle, SW_HIDE ); | Result := True; // message is handled | end else | Result := False; // message not handled
... and it seems to do the trick (except for desktop switching).
Does that help investigating this issue?
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #27 from Kirurgs edzis@inbox.lv 2009-07-16 04:01:59 --- Well, I can observe a bit different situation, I think that's because of the way it minimizes... See, I apply just one line of ShowWindow in the event.c file for the case of minimize (no chages to restore or maximize) and it works very well, I see no problems at all... Fix shouldn't be hard (just theory, but from the expierence), maybe this bug doesn't get enough attention from users, like there are not so many Delphi apps that are used on linux :(
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #28 from Reinhard Berger geist1@sms.at 2009-07-18 23:39:55 --- There are alot of programs using delphi out, the fameost ist "FlashFXP" which is surly one one of the most used ones udner linux,
I do not realy understand the reason why this thing has had to be changed, it worked correctly before, and it is now almost 1 year without a *real* fix.
Also a very fine program called "TMPGEncoder" is affected by this and a lot more.
http://bugs.winehq.org/show_bug.cgi?id=15069
Hephaestus Malleus hephaestus@mailinator.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hephaestus@mailinator.com
--- Comment #29 from Hephaestus Malleus hephaestus@mailinator.com 2009-07-25 11:04:01 --- I can confirm that this Firefox Minimization Bug still occurs with Wine version: 1.1.25~winehq0~ubuntu~8.10-0ubuntu1 on Ubuntu v8.10.
Bug: Once Firefox is opened up through Wine, it cannot be minimized at all.
What should have happened: When a user clicks the minimize button on Firefox (through Wine), Firefox should minimize to the lower taskbar.
What happened instead: When the user clicks the minimize button, Firefox tries to minimize, but then maximizes again. The user is unable to minimize the program at all.
(My Wine config is set to mimic WinXP apps).
http://bugs.winehq.org/show_bug.cgi?id=15069
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.2.0
--- Comment #30 from Juan Lang juan_lang@yahoo.com 2009-07-29 10:50:53 --- This seems like a reasonable one to nominate for 1.2, since it's a regression and it affects a fairly large number of applications.
http://bugs.winehq.org/show_bug.cgi?id=15069
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tbepdb@gmail.com
--- Comment #31 from Vitaliy Margolen vitaliy@kievinfo.com 2009-07-29 20:42:25 --- *** Bug 19497 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Firefox / Delphi 5 app |Apps won't minimize and |won't minimize and extra |extra caption bar shows |caption bar shows |
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #32 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-06 00:40:55 --- I think these are two separate problems: 1. The Delphi apps minimize just fine. However on app restore WM restores the TApplication window, after app itself "hide" it. This window has 0x0 size but has WS_VISABLE style. So it should not be managed. Or even mapped I think.
2. FireFox minimization actually does work, if it has focus. But fails when it's not focused. I'm guessing it refocuses itself at the wrong time.
So the only "common" part that I see is the fact that some events do happen at the wrong time. Not really sure how to fix it. 1) could be fixed by not unmapping window that is 0 size, even if X/WM wants to map it. 2) probably needs a SetFocus "filter" of sorts when app is minimizing. Needs more testing.
http://bugs.winehq.org/show_bug.cgi?id=15069
diafero@arcor.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|diafero@arcor.de |
http://bugs.winehq.org/show_bug.cgi?id=15069
Ralf Jung ralfjung-e@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ralfjung-e@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=15069
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ratmaster210@yahoo.com
--- Comment #33 from Austin English austinenglish@gmail.com 2009-09-26 21:42:43 --- *** Bug 20173 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #34 from ratmaster210@yahoo.com 2009-09-27 12:54:21 --- (In reply to comment #32)
I think these are two separate problems:
- The Delphi apps minimize just fine. However on app restore WM restores the
TApplication window, after app itself "hide" it. This window has 0x0 size but has WS_VISABLE style. So it should not be managed. Or even mapped I think.
- FireFox minimization actually does work, if it has focus. But fails when
it's not focused. I'm guessing it refocuses itself at the wrong time.
So the only "common" part that I see is the fact that some events do happen at the wrong time. Not really sure how to fix it. 1) could be fixed by not unmapping window that is 0 size, even if X/WM wants to map it. 2) probably needs a SetFocus "filter" of sorts when app is minimizing. Needs more testing.
I'm not familiar with Delphi apps but I do use firefox. I don't see how focusing has anything to do with it. I just tried firefox 3.5 using wine and it didn't matter if firefox had focus or not, I couldn't minimize. There any fix a user can use or should I wait for the bug to be fixed?
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #35 from Felix Saphir felix.saphir@presswatch.de 2009-09-27 13:55:18 --- Created an attachment (id=23792) --> (http://bugs.winehq.org/attachment.cgi?id=23792) Patch to event.c, replaces calls to SendMessageW with ShowWindow
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #36 from Felix Saphir felix.saphir@presswatch.de 2009-09-27 13:58:00 --- (In reply to comment #34)
I'm not familiar with Delphi apps but I do use firefox. I don't see how focusing has anything to do with it. I just tried firefox 3.5 using wine and it didn't matter if firefox had focus or not, I couldn't minimize. There any fix a user can use or should I wait for the bug to be fixed?
Wolfgang Walter did a good analysis of this problem and suggested a solution in a comment to bug #15062. You can find the resulting patch here: http://bugs.winehq.org/attachment.cgi?id=23792. It works very well for me since version 1.1.12
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #37 from Paul Romanyszyn pgr@arcelectronicsinc.com 2009-10-14 10:14:04 --- Tested with current git wine-1.1.31 + The current version of firefox 3.53 seems to run without problems but I never tested it when it did not work.
The original problem with minimizing not working is still present in some cases but now seems that just the grandchildren of the hidden top level window don't minimize.
Delphi 3 IDE with blank default project. On startup three windows show on alt-tab and gnome task bar. Delphi 3 - Project1, Unit 1, and Form1. The Object inspector is visible but not on either list.
When using minimized with '-' or right click popup on task bar the Delphi 3 Project1 window only the Delphi 3 Project 1 window minimizes and a new "Delphi 3" (the hidden top level) window shows minimized on the task bar and alt-tab list. Form1, Unit1 and object inspector remain.
When switching desktops the new desktop shows a minimized 'Delphi 3' which is the hidden top level window. It remains on this desktop when switching back to the original desktop or any other. One side effect is dialogs like the on exit save project pops up on the desktop the top level window is located on which is not the current desktop used.
http://bugs.winehq.org/show_bug.cgi?id=15069
mackle mackle9@yahoo.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mackle9@yahoo.com.au
--- Comment #38 from mackle mackle9@yahoo.com.au 2009-12-01 06:29:17 --- *** Bug 20874 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
Wolfram Sang wolfram@the-dreams.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wolfram@the-dreams.de
--- Comment #39 from Wolfram Sang wolfram@the-dreams.de 2010-01-24 14:38:12 --- IDA Pro is also affected, understandably as it also uses VCL. Patch from comment 36 "fixes" the problem (with wine 1.1.37).
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #40 from Stuart Middleton Stuart@houseofanime.org 2010-01-25 14:27:19 --- Issue no longer seems to present in DVD Profiler (application id 1975) for wine 1.1.37 running on OpenSuse 11.2_64 (KDE 4.2).
Will leave status unchanged as it appears other applications are still affected. Could this also be a platform issue?
http://bugs.winehq.org/show_bug.cgi?id=15069
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vsevolod.krishchenko@gmail. | |com
--- Comment #41 from Dmitry Timoshkov dmitry@codeweavers.com 2010-01-29 00:54:04 --- *** Bug 21528 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #42 from Alex Stanev alex@stanev.org 2010-01-29 02:56:51 --- Still observed in PLSQL Developer 8
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #43 from Vsevolod vsevolod.krishchenko@gmail.com 2010-03-15 04:37:30 --- It stills affect all my legacy Delphi apps, wine 1.1.40. It is impossible to use them in wine 1.1.x due to this bug.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #44 from Kirurgs edzis@inbox.lv 2010-03-16 10:08:48 --- Somehow I feel this can be investigated quite easily by person who introduced sendmessagew function instead of showwindow. It might be that internals of sendmessagew should be changed to cope with Delphi apps. That would be for proper fix. I'm still compiling wine myself from git with sendmessagew -> showwindow patch enabled for minimize case, which is not the correct fix of the problem.
http://bugs.winehq.org/show_bug.cgi?id=15069
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
--- Comment #45 from Wylda wylda@volny.cz 2010-04-02 16:20:05 ---
Still not fixed in 1.1.42.
When trying to help with bug 22167, i discovered, that when the window is minimized, it doesn't get restored correctly to full screen.
Reverting following two commits on top of 1.1.42, returns back the normal minimize/restore behavior:
* 4a69797c43166699e7fbe70e6a7de4abd9521af8 ("winex11: Also check the maximized when restoring a minimized window.")
* 8d77c375b27adc490d24d7593769f4e149d4102c ("winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/restore a window.")
Download: http://sdp.ppona.com/zipfiles/SDP_v2_3_0.msi
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #46 from Wylda wylda@volny.cz 2010-04-17 09:49:55 ---
This regression (bisected) is still present in wine-1.1.43
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #47 from Wylda wylda@volny.cz 2010-05-10 14:53:58 ---
This regression (bisected) is still present in wine-1.1.44-72-g658209b.
Tested under: http://sdp.ppona.com/zipfiles/SDP_v2_3_0.msi
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #48 from Alexandre Julliard julliard@winehq.org 2010-05-24 12:23:55 --- Extra caption bar should be fixed by 2cf9cdd3d81af3f26dc6b81d86c3fd094aa6aae8.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #49 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-24 16:05:41 --- It is better but new behavior still is unusable and may require a new bug.
Testing with ubuntu 8,04 under gnome. I will reboot and test 10.04 shorty. Using Delphi 3 ide by changing desktop to a different desktop then back.
When starting there are 4 visible windows created. The gnome task bar and alt tab list shows 3 items but not the object inspector. The project, unit1.pas and form1 are the visible ones.
When switching away the from the desktop the workplace switcher shows that the form and unit window are minimize.
When switching back to the desktop has the project window visible but all the others are now hidden and no changes to the alt-tab window list. The form and unit windows appear to be minimized leaving the object inspector and project window.
When restoring either the unit or form window with alt-tab or gnome start bar both form and unit show up on the desktop but all delphi related windows don't show on the alt-tab or status bar. If any of the window get minimized they can not be restored.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #50 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-24 23:22:50 --- Retested Ubuntu 10.04. Delphi 1 and Delphi 3 IDE's and several delphi based applications are affected With D5 ide no desktop change is required to trigger the error. Minimizing the main window and then restoring it followed by minimizing and restoring one of the other ide's window changes all of the windows to not be seen by the alt-tab or status bar.
The exe from bug 15062 shows the problem. Just minimize and restore it. http://bugs.winehq.org/attachment.cgi?id=15728
http://bugs.winehq.org/show_bug.cgi?id=15069
Paul Romanyszyn pgr@arcelectronicsinc.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #16608|0 |1 is obsolete| |
--- Comment #51 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-24 23:53:34 --- Created an attachment (id=28259) --> (http://bugs.winehq.org/attachment.cgi?id=28259) replace SendMessageW with ShowWindow for minimize
With very limited testing this one revert keeps the problem from occurring with Delphi based applications.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #52 from Alexandre Julliard julliard@winehq.org 2010-05-25 02:41:32 --- I don't see any problem with minimizing the exe from bug 15062. What problem do you see, and with what window manager?
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #53 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-25 07:55:13 --- I am using gnome with desktop effects off. If I start bug 15062 from a terminal with only the terminal open on the desktop it will minimize and restore without a problem.
I was testing by starting winefile and navigating to the exe and starting it that way. If winefile is first minimized then but 15062 works as expected. If wine file is not minimized then the second time you minimize bug 15062 it you can't restore it.It is running and only shows with ps -a.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #54 from Alexandre Julliard julliard@winehq.org 2010-05-25 14:19:23 --- Created an attachment (id=28279) --> (http://bugs.winehq.org/attachment.cgi?id=28279) Owned popups fix
Please give this a try.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #55 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-25 14:44:13 --- The owned poupu fix is an improvement. When the desktop is switched the top level window should just stay the same size but is gets minimized and transfered to the new desktop Tested with bug15062.exe and Delphi 3 IDE.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #56 from Felix Saphir felix.saphir@kantarmedia.de 2010-05-26 03:04:53 --- (In reply to comment #55)
The owned poupu fix is an improvement. When the desktop is switched the top level window should just stay the same size but is gets minimized and transfered to the new desktop Tested with bug15062.exe and Delphi 3 IDE.
Same here with a Delphi 5 application: - the window is minimized and transferred on desktop switch, - caption in the taskbar changes between "Form1" (normal) and "Project1" (minimized), - focus is not restored, - the "minimize" button is gone
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #57 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-26 19:19:30 --- The one line change in http://bugs.winehq.org/attachment.cgi?id=28259 still fixes the problem after the owned popups was committed to Git
http://bugs.winehq.org/show_bug.cgi?id=15069
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.talken@telia.com
--- Comment #58 from Dmitry Timoshkov dmitry@codeweavers.com 2010-05-27 23:18:27 --- *** Bug 14948 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #59 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-28 16:04:50 --- Testing with wine-1.2-rc2 and bug16062.exe
start bug15062.exe from terminal. Minimize terminal. The view on the gnome workspace switcher shows two windows form1 and bug16062. These names are from the mouse over popup. The caption of the only form visible on the desktop is form1. The bottom taskbar shows only bug15062.exe and the terminal session.
After clicking on the minimize icon causes the form1 that was showing on the workspace switcher is no longer present. Using alt-tab or the taskbar sets the focus to bug15062 form but it is invisable.
A quick tests with Delphi 3 ide.Only the hidden top level form is getting focus from alt-tab or taskbar. The rest of the forms are only showing up on the workspace switcher and desktop. So if you minimize any of the forms you can't restore them.
Also replacing the Showwindow with sendmessage no longer allows delphi apps to restore from a minimize state.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #60 from Alexandre Julliard julliard@winehq.org 2010-05-28 16:23:45 --- Everything is working fine for me in bug15062.exe as far as I can tell. I tested metacity, compiz, fvwm, and KDE. Can you try some other window manager to see if it helps?
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #61 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-28 22:27:27 --- Bug15062.exe is a non mdi test program. I found that if the mdi application has all of the forms owned by the main form it works. If any of the mdi forms are set to float or on top then only the floating or on top forms get restored. The main mdi parent and it' normal form are not visible.
A delphi 1 mdi from bug21122 at http://www.arcelectronicsinc.com/testinfo/kpnl1tester.zip will demonstrate a problem I see with the Delphi 3 IDE.
Start kpnl1.exe and look at the show hide menu and make sure the lcd and keypanel float and top are not checked. Then minimize and restore (it should work) Check the float or on top and then minimize and restore and then I only see the floating form not the main.
Testing with ubuntu 10.04 no desktop effects. I will boot and recompile with ubuntu 8.04 and different window managers.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #62 from Wylda wylda@volny.cz 2010-05-29 00:14:03 ---
Hi, i just tried SDP application (http://sdp.ppona.com/zipfiles/SDP_v2_3_0.msi) under 1.2-rc2.
Minimizing and restoring works perfectly now, but when i maximize the window, then minimize and now i'm not able to restore nor maximize the application.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #63 from Paul Romanyszyn pgr@arcelectronicsinc.com 2010-05-29 11:06:48 --- Testing with Delphi 3 IDE. Ubuntu 10.04 I found that under Gnome without compiz triggers the problem.
Gnome desktop effects set to off. Minimized MDI windows are not found by alt tab and can't be restored. Desktop effects set to minimum. All MDI windows show on alt-tab. Only the main window on the taskbar.
KDE Works if desktop effects are on or not.
Ubuntu 8.10 Gnome compiz not installed. MDI windows not found by alt-tab so no way to restore them.
Kpnl1.exe seems to work with desktop effect on in Gnome and in KDE any setting.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #64 from Wolfram Sang wolfram@the-dreams.de 2010-05-29 21:09:02 --- Are the MDI-problems related to Bug 1719 perhaps?
I tried 1.2-rc2 with free IDA-Pro. Changing desktops is now possible most of the times, definately a huge improvement. Although I have to wait for some timeout with wmii as the window-manager:
fixme:event:wait_for_withdrawn_state window 0x10080/1a0000c wait timed out
However, there are some focus-problems mentioned in the todo of wmii, so I don't think these problems are caused by wine for now.
http://bugs.winehq.org/show_bug.cgi?id=15069
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #65 from Alexandre Julliard julliard@winehq.org 2010-05-31 13:25:40 --- I don't see any way to make this work with Metacity. If the window type is "dialog" it can't be minimized, and if the window type is "normal" it isn't restored when the owner is restored. KDE works fine so I'd suggest to use that and/or file a bug with metacity.
I consider this bug fixed now. If there are problems other than metacity not restoring the windows on unminimize please file new bugs.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #66 from Kirurgs edzis@inbox.lv 2010-06-04 01:33:13 --- Now, PL/SQL developer behaves very strange. It changes desktops along how I switch to them and not always, like 30% of cases only. No dialogs are focused when they appear, they are shown somewhere in background. At least for PL/SQL developer this is even worse than before. I'll try to modify the patch and replace SendMSG to ShowWIN and see what happens then. And yes, I'm running gnome + metacity, but so do most of the people...
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #67 from Alex Stanev alex@stanev.org 2010-06-04 02:49:52 --- Kirurgs, please see bug 23015 for described behavior
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #68 from Kirurgs edzis@inbox.lv 2010-06-04 06:11:03 --- I tried to change SendMSG to ShowWIN. Now PL/SQL Dev doesn't change desktop along navigating between them. In superswitcher PL/SQL dev always shows 2 windows even just main window is visible, maybe that is due to mapping zero-sized windows... Dialog problem then is another issue.
http://bugs.winehq.org/show_bug.cgi?id=15069
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #69 from Alexandre Julliard julliard@winehq.org 2010-06-11 12:50:03 --- Closing bugs fixed in 1.2-rc3.
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #70 from Adri hello.adri@gmail.com 2010-07-08 13:42:45 --- This fix doesn't work for Albumplayer, No maximizing nor minimizing & no appearance in the task-list in Gnome Compiz No minimizing in kde4, maximize does work but no restore to previous window state Appearance in task-list is oke in kde4.
wine 1.2-rc6
http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #71 from Adri hello.adri@gmail.com 2010-07-08 13:59:19 --- Sorry, It looked like program appeared in task manager list but it actually doesn't in kde4 either.