public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* XWin on taskbar
@ 2012-08-01  2:17 Ross Boulet
  2012-08-01  3:10 ` Eliot Moss
  0 siblings, 1 reply; 7+ messages in thread
From: Ross Boulet @ 2012-08-01  2:17 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XWin on taskbar
  2012-08-01  2:17 XWin on taskbar Ross Boulet
@ 2012-08-01  3:10 ` Eliot Moss
  2012-08-02 12:38   ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Eliot Moss @ 2012-08-01  3:10 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XWin on taskbar
  2012-08-01  3:10 ` Eliot Moss
@ 2012-08-02 12:38   ` Jon TURNEY
       [not found]     ` <F187BCB1819C944184FEFF04AA702BF6B6E999@ORD2MBX01B.mex05.mlsrvr.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Jon TURNEY @ 2012-08-02 12:38 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: moss, rossb

[-- Attachment #1: Type: text/plain, Size: 2343 bytes --]

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

[-- Attachment #2: run.c.patch --]
[-- Type: text/plain, Size: 367 bytes --]

--- run.c.old	2012-08-02 13:11:52.906250000 +0100
+++ run.c	2012-08-02 13:12:03.562500000 +0100
@@ -499,7 +499,7 @@
          {
            AllocConsole ();
            bHaveConsole = TRUE;
-           SetParent ((*GetConsoleWindowFP) (), HWND_MESSAGE);
+           ShowWindowAsync((*GetConsoleWindowFP) (), SW_HIDE);
          }
      }
    else if (!bHaveConsole)


[-- Attachment #3: Type: text/plain, Size: 223 bytes --]

--
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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XWin on taskbar
       [not found]     ` <F187BCB1819C944184FEFF04AA702BF6B6E999@ORD2MBX01B.mex05.mlsrvr.com>
@ 2012-08-03 14:42       ` Eliot Moss
  2012-08-06 12:05         ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Eliot Moss @ 2012-08-03 14:42 UTC (permalink / raw)
  To: Ross Boulet; +Cc: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XWin on taskbar
  2012-08-03 14:42       ` Eliot Moss
@ 2012-08-06 12:05         ` Jon TURNEY
  2012-08-06 12:18           ` Eliot Moss
  2012-08-06 13:22           ` Ross Boulet
  0 siblings, 2 replies; 7+ messages in thread
From: Jon TURNEY @ 2012-08-06 12:05 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: moss

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: XWin on taskbar
  2012-08-06 12:05         ` Jon TURNEY
@ 2012-08-06 12:18           ` Eliot Moss
  2012-08-06 13:22           ` Ross Boulet
  1 sibling, 0 replies; 7+ messages in thread
From: Eliot Moss @ 2012-08-06 12:18 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: XWin on taskbar
  2012-08-06 12:05         ` Jon TURNEY
  2012-08-06 12:18           ` Eliot Moss
@ 2012-08-06 13:22           ` Ross Boulet
  1 sibling, 0 replies; 7+ messages in thread
From: Ross Boulet @ 2012-08-06 13:22 UTC (permalink / raw)
  To: cygwin-xfree, cygwin-xfree

> 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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-06 13:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-01  2:17 XWin on taskbar Ross Boulet
2012-08-01  3:10 ` Eliot Moss
2012-08-02 12:38   ` Jon TURNEY
     [not found]     ` <F187BCB1819C944184FEFF04AA702BF6B6E999@ORD2MBX01B.mex05.mlsrvr.com>
2012-08-03 14:42       ` Eliot Moss
2012-08-06 12:05         ` Jon TURNEY
2012-08-06 12:18           ` Eliot Moss
2012-08-06 13:22           ` Ross Boulet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).