RE: XWin on taskbar

2012-08-06 Thread Ross Boulet
> On 03/08/2012 15:42, Eliot Moss wrote:
> > The patched run.exe seems to work for me as well.
> 
> Thanks for testing.
> 
> I am still uncertain if you are seeing the same, similar or a different 
> problem
> to me, though, so it would be helpful if you could confirm or deny if the 
> extra
> taskbar button you see with the unpatched run behaves in the same way as I
> described.
> 
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer
> 

On my Win 7 Pro, I never had the extra taskbar item. But on my Win 7 Home 
Premium laptop, the patched version of run eliminated the extra item.


--
Ross




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XWin on taskbar

2012-08-06 Thread Eliot Moss

On 8/6/2012 8:04 AM, Jon TURNEY wrote:

On 03/08/2012 15:42, Eliot Moss wrote:

The patched run.exe seems to work for me as well.


Thanks for testing.

I am still uncertain if you are seeing the same, similar or a different
problem to me, though, so it would be helpful if you could confirm or deny if
the extra taskbar button you see with the unpatched run behaves in the same
way as I described.


Sorry I did not describe more completely, but yes, that's
the exact behavior I see also.

Regards -- EM

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XWin on taskbar

2012-08-06 Thread Jon TURNEY
On 03/08/2012 15:42, Eliot Moss wrote:
> The patched run.exe seems to work for me as well.

Thanks for testing.

I am still uncertain if you are seeing the same, similar or a different
problem to me, though, so it would be helpful if you could confirm or deny if
the extra taskbar button you see with the unpatched run behaves in the same
way as I described.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XWin on taskbar

2012-08-03 Thread Eliot Moss

The patched run.exe seems to work for me as well.

Thanks!Eliot

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: XWin on taskbar

2012-08-02 Thread Jon TURNEY
On 01/08/2012 04:10, Eliot Moss wrote:
> On 7/31/2012 10:16 PM, Ross Boulet wrote:
>> I have a desktop running Windows 7 Professional and a laptop running Windows
>> 7 Home Premium. I have updated Cygwin on both to make sure everything is
>> current. I start X on both the same way using the shortcut installed by
>> Cygwin. On both machines, I have a .startxwinrc that starts two rxvt
>> windows. The difference is, on the desktop, items appear in the Windows
>> taskbar for the two rxvt windows only - as I expect. But on the laptop,
>> another taskbar item for the XWin server appears.
>>
>> It's not a huge deal, but it adds a little clutter to the taskbar I would
>> rather not see. Any thoughts as to why this is happening?
> 
> I am not sure the reason is known; a race condition has been
> mentioned as a possibility.  I solved this by using xlaunch,
> and starting that with cygwin's "run" program.

I strongly suspect this is a problem which only manifests itself on W7, as the
mechanisms which cygwin and run use to keep these console windows invisible
have to be different for W7.

I finally had a bit of time to try to reproduce this on W7, and succeeded in
seeing a problem, but I'm not sure if it's the same one as you are seeing:

If I have a non-empty ~/.startxwinrc, or no ~/.startxwinrc so startxwin starts
a default xterm, then I was seeing an additional taskbar item labelled "XWin
Server", but this taskbar item has no associated window, the only option in
the right-click menu is "close window".  When you close all the X programs
which have been started by startxwin, this taskbar item disappears.

Poking around a bit more, this taskbar item does seem be owned by the conhost
process which is associated with the xterm process started by startxwin.

Of course, if you try to debug this problem, it disappears, so this does look
like some kind of timing problem with the way we hide the console window.

I was able to get things to work properly by applying the attached patch to
run, although it's unclear to me that this is the correct fix or if this just
moves the problem around.

I've uploaded a build of run.exe at [1], perhaps you could try replacing
/usr/bin/run.exe with it and see if it improves things for you?

[1] ftp://cygwin.com/pub/cygwinx/run.exe

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer
--- run.c.old   2012-08-02 13:11:52.90625 +0100
+++ run.c   2012-08-02 13:12:03.56250 +0100
@@ -499,7 +499,7 @@
  {
AllocConsole ();
bHaveConsole = TRUE;
-   SetParent ((*GetConsoleWindowFP) (), HWND_MESSAGE);
+   ShowWindowAsync((*GetConsoleWindowFP) (), SW_HIDE);
  }
  }
else if (!bHaveConsole)

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

Re: XWin on taskbar

2012-07-31 Thread Eliot Moss

On 7/31/2012 10:16 PM, Ross Boulet wrote:

I have a desktop running Windows 7 Professional and a laptop running Windows 7 
Home Premium. I have updated Cygwin on both to make sure everything is current. 
I start X on both the same way using the shortcut installed by Cygwin. On both 
machines, I have a .startxwinrc that starts two rxvt windows. The difference 
is, on the desktop, items appear in the Windows taskbar for the two rxvt 
windows only - as I expect. But on the laptop, another taskbar item for the 
XWin server appears.

It's not a huge deal, but it adds a little clutter to the taskbar I would 
rather not see. Any thoughts as to why this is happening?


I am not sure the reason is known; a race condition has been
mentioned as a possibility.  I solved this by using xlaunch,
and starting that with cygwin's "run" program.

Regards -- Eliot Moss

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



XWin on taskbar

2012-07-31 Thread Ross Boulet
I have a desktop running Windows 7 Professional and a laptop running Windows 7 
Home Premium. I have updated Cygwin on both to make sure everything is current. 
I start X on both the same way using the shortcut installed by Cygwin. On both 
machines, I have a .startxwinrc that starts two rxvt windows. The difference 
is, on the desktop, items appear in the Windows taskbar for the two rxvt 
windows only - as I expect. But on the laptop, another taskbar item for the 
XWin server appears. 

It's not a huge deal, but it adds a little clutter to the taskbar I would 
rather not see. Any thoughts as to why this is happening?

Thanks,
Ross

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/