#13251: wxExecute generates additional icon in Alt+Tab process list
-----------------------+----------------------------------------------------
Reporter: joim | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxExecute | Blockedby:
Patch: 0 | Blocking:
-----------------------+----------------------------------------------------
I start from my wx program an external program with the wxExecute function
(with the wxEXEC_SYNC default parameter).
When I press Alt+Tab while the external program is still running, there
are two icons for my wx program in the process list shown by the windows
operating system.
I am using Windows XP.
I think this comes from the dummy window "winActive"
in the function void *wxGUIAppTraits::BeforeChildWaitLoop()
in the file src/msw/app.cpp
on line 191
--
Ticket URL: <http://trac.wxwidgets.org/ticket/13251>
#13251: wxExecute generates additional icon in Alt+Tab process list
-----------------------+----------------------------------------------------
Reporter: joim | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxExecute | Blockedby:
Patch: 0 | Blocking:
-----------------------+----------------------------------------------------
Comment(by vadz):
I can't reproduce this in the exec sample, if I synchronously execute
notepadin it I only see one icon, not two.
OTOH I also noticed that this workaround with active but hidden window
doesn't work anyhow under Windows 7 which still switches to another
program when notepad is closed. So it really looks like we need to avoid
disabling the main window anyhow. This would require relatively extensive
changes however.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/13251#comment:1>
#13251: wxExecute generates additional icon in Alt+Tab process list
-----------------------+----------------------------------------------------
Reporter: joim | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxExecute | Blockedby:
Patch: 0 | Blocking:
-----------------------+----------------------------------------------------
Comment(by joim):
I see. In the exec sample I also can't reproduce.
But I think, the icon that appears during the notepad is running, is not
the icon of the main exec sample window, but the icon of the dummy window
(when you debug step by step, you see first disappearing the task icon
(wxWindowDisabler) and then reappearing (dummy window show), and you see,
that there is no window title below the icon.
When I replace in the exec sample the OnSyncExec function with
Hide ();
wxExecute ("C:\\Programme\\Notepad++\\notepad++.exe", wxEXEC_SYNC);
Show ();
I expect to see no icon, but I see one.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/13251#comment:2>
#13251: wxExecute generates additional icon in Alt+Tab process list
-----------------------+----------------------------------------------------
Reporter: joim | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: wxExecute | Blockedby:
Patch: 0 | Blocking:
-----------------------+----------------------------------------------------
Changes (by vadz):
* status: new => confirmed
Comment:
Still not sure what to do about this. Some fresh ideas wanted as the
current approach simply doesn't work under Win7 and we still lose
focus/activation so we could just as well not do it at all.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/13251#comment:3>